Skip to content

Commit dd2c44e

Browse files
committed
use msbuild not dotnet build
1 parent d96868d commit dd2c44e

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

.github/workflows/build.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,12 @@ jobs:
2727
uses: actions/setup-dotnet@v5
2828
with:
2929
dotnet-version: '9.0.x'
30-
31-
- name: Restore dependencies
32-
run: dotnet restore "Simple QR Code Maker.sln"
30+
31+
- name: Setup MSBuild
32+
uses: microsoft/setup-msbuild@v2
33+
34+
- name: Restore
35+
run: msbuild "Simple QR Code Maker.sln" /t:Restore /p:Configuration=${{ matrix.configuration }}
3336

3437
- name: Build
35-
run: dotnet build "Simple QR Code Maker.sln" --configuration Release --no-restore /p:PublishReadyToRun=false
38+
run: msbuild "Simple QR Code Maker.sln" /p:Configuration=${{ matrix.configuration }} /p:Platform=${{ matrix.platform }}

0 commit comments

Comments
 (0)