File tree Expand file tree Collapse file tree 1 file changed +3
-19
lines changed
Expand file tree Collapse file tree 1 file changed +3
-19
lines changed Original file line number Diff line number Diff line change @@ -46,32 +46,16 @@ jobs:
4646 dotnet workload update
4747
4848 # Windows builds using MSBuild
49- - name : Find MSBuild
50- run : |
51- $msbuildPath = & "${env:ProgramFiles(x86)}\Microsoft Visual Studio\Installer\vswhere.exe" -latest -products * -requires Microsoft.Component.MSBuild -find MSBuild\**\Bin\MSBuild.exe
52- echo "MSBUILD_PATH=$msbuildPath" >> $env:GITHUB_ENV
53- shell : pwsh
54-
55- - name : Restore library dependencies (Windows)
56- run : |
57- "${{ env.MSBUILD_PATH }}" ${{env.LIB_CSPROJ}} /t:Restore /p:TargetFramework=net9.0-windows10.0.19041.0 /p:RuntimeIdentifiers=win-x64
58- shell : cmd
59-
49+
6050 - name : Build library (Windows)
6151 run : |
6252 "${{ env.MSBUILD_PATH }}" ${{env.LIB_CSPROJ}} /p:Configuration=Release /p:TargetFramework=net9.0-windows10.0.19041.0 /p:RuntimeIdentifiers=win-x64 /p:PackageVersion=${{ env.NugetPackageVersion }} /p:Version=${{ env.NugetPackageVersion }}
6353
6454 shell : cmd
65-
66- - name : Restore sample dependencies (Windows)
67- run : |
68- "${{ env.MSBUILD_PATH }}" ${{env.SAMPLE_CSPROJ}} /t:Restore /p:TargetFramework=net9.0-windows10.0.19041.0 /p:RuntimeIdentifiers=win-x64 /p:WindowsAppSDKSelfContained=true
69- shell : cmd
70-
55+
7156 - name : Build Sample app (Windows)
7257 run : |
73- "${{ env.MSBUILD_PATH }}" ${{env.SAMPLE_CSPROJ}} /p:Configuration=Release /p:TargetFramework=net9.0-windows10.0.19041.0 /p:RuntimeIdentifiers=win-x64 /p:WindowsAppSDKSelfContained=true
74- continue-on-error : true
58+ dotnet build${{env.SAMPLE_CSPROJ}} -c Release -f net9.0-windows10.0.19041.0 -p:WindowsPackageType=None -p:SelfContained=true -p:WindowsAppSDKSelfContained=true -p:RuntimeIdentifier=win-x64
7559 shell : cmd
7660
7761 # Android builds using dotnet build
You can’t perform that action at this time.
0 commit comments