@@ -12,14 +12,33 @@ jobs:
1212 matrix :
1313 configuration : [Debug, Release]
1414
15- runs-on : windows-latest
16-
15+ runs-on : windows-2022
1716 steps :
17+
18+ - name : Update VS2022 preview
19+ shell : bash
20+ run : |
21+ dotnet tool update -g dotnet-vs
22+ vs modify preview +mobile +xamarin +core +desktop +uwp +web
23+ echo "##vso[task.prependpath]$(vs where preview --prop=InstallationPath)\MSBuild\Current\Bin"
24+
25+ - name : Install Windows SDK 10.0.16299
26+ shell : pwsh
27+ run : |
28+ Invoke-WebRequest -Uri https://go.microsoft.com/fwlink/p/?linkid=864422 -OutFile winsdk.exe
29+ $startInfo = New-Object System.Diagnostics.ProcessStartInfo
30+ $startInfo.FileName = "winsdk.exe"
31+ $startInfo.Arguments = "/norestart /quiet"
32+ $process = New-Object System.Diagnostics.Process
33+ $process.StartInfo = $startInfo
34+ $process.Start()
35+ $process.WaitForExit()
36+
1837 - name : Checkout
1938 uses : actions/checkout@v2
2039 with :
2140 fetch-depth : 0
22- lfs : true
41+ lfs : true
2342
2443 - name : Install .NET Core
2544 uses : actions/setup-dotnet@v1.8.1
4665 dotnet workload install macos
4766 dotnet workload install maui
4867
49- - name : Install VS2022 preview
50- shell : bash
51- run : |
52- dotnet tool update -g dotnet-vs
53- vs install preview -sku:enterprise --quiet +Microsoft.VisualStudio.Component.ManagedDesktop.Core +Microsoft.NetCore.Component.DevelopmentTools +Microsoft.VisualStudio.Workload.NetCrossPlat +Microsoft.VisualStudio.Workload.Universal
54- echo "##vso[task.prependpath]$(vs where preview --prop=InstallationPath)\MSBuild\Current\Bin"
55-
5668 - name : Add MSBuild to PATH
5769 uses : glennawatson/setup-msbuild@v1.0.3
5870 with :
0 commit comments