update snippets for vs 2022 (#1315)

This commit is contained in:
Andy (Steve) De George
2022-02-17 16:11:34 -08:00
committed by GitHub
parent 2ef8f1d274
commit 22741516f0
2 changed files with 28 additions and 10 deletions
+3 -3
View File
@@ -10,7 +10,7 @@ on:
env:
DOTNET_INSTALLER_CHANNEL: '6.0'
DOTNET_DO_INSTALL: 'true'
DOTNET_DO_INSTALL: 'false'
EnableNuGetPackageRestore: 'True'
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
@@ -18,7 +18,7 @@ jobs:
# This workflow contains a single job called "snippets-build"
snippets-build:
# The type of runner that the job will run on
runs-on: windows-latest
runs-on: windows-2022
permissions:
statuses: write
@@ -35,7 +35,7 @@ jobs:
Invoke-WebRequest https://raw.githubusercontent.com/dotnet/install-scripts/master/src/dotnet-install.ps1 -OutFile dotnet-install.ps1
echo "Installing dotnet version ${{ env.DOTNET_INSTALLER_CHANNEL }}"
.\dotnet-install.ps1 -InstallDir "c:\program files\dotnet" -Channel "${{ env.DOTNET_INSTALLER_CHANNEL }}"
# Print dotnet info
- name: Display .NET info
run: |