Skip to content

Commit 3a2a73c

Browse files
committed
fix msbuild command
1 parent 63923ed commit 3a2a73c

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

.github/workflows/dotnet-windows.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ env:
1919
NugetPackageVersion: '99.0.0-preview${{ github.run_number }}'
2020
CurrentSemanticVersionBase: '99.0.0'
2121
Package_Creation_Path: './src/PJ.ContextActions.Maui/bin/Release'
22-
MSBUILD_PATH: 'C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin\amd64\MSBuild.exe'
2322

2423
jobs:
2524
build:
@@ -55,22 +54,22 @@ jobs:
5554

5655
- name: Restore library dependencies (Windows)
5756
run: |
58-
& "${{ env.MSBUILD_PATH }}" ${{env.LIB_CSPROJ}} /t:Restore /p:TargetFramework=net9.0-windows10.0.19041.0 /p:RuntimeIdentifier=win10-x64
57+
& msbuild ${{env.LIB_CSPROJ}} /t:Restore /p:TargetFramework=net9.0-windows10.0.19041.0 /p:RuntimeIdentifier=win10-x64
5958
shell: cmd
6059

6160
- name: Build library (Windows)
6261
run: |
63-
& "${{ env.MSBUILD_PATH }}" ${{env.LIB_CSPROJ}} /p:Configuration=Release /p:TargetFramework=net9.0-windows10.0.19041.0 /p:RuntimeIdentifier=win10-x64 /p:PackageVersion=${{ env.NugetPackageVersion }} /p:Version=${{ env.NugetPackageVersion }}
62+
& msbuild ${{env.LIB_CSPROJ}} /p:Configuration=Release /p:TargetFramework=net9.0-windows10.0.19041.0 /p:RuntimeIdentifier=win10-x64 /p:PackageVersion=${{ env.NugetPackageVersion }} /p:Version=${{ env.NugetPackageVersion }}
6463
shell: cmd
6564

6665
- name: Restore sample dependencies (Windows)
6766
run: |
68-
& "${{ env.MSBUILD_PATH }}" ${{env.SAMPLE_CSPROJ}} /t:Restore /p:TargetFramework=net9.0-windows10.0.19041.0 /p:RuntimeIdentifier=win10-x64
67+
& msbuild ${{env.SAMPLE_CSPROJ}} /t:Restore /p:TargetFramework=net9.0-windows10.0.19041.0 /p:RuntimeIdentifier=win10-x64
6968
shell: cmd
7069

7170
- name: Build Sample app (Windows)
7271
run: |
73-
& "${{ env.MSBUILD_PATH }}" ${{env.SAMPLE_CSPROJ}} /p:Configuration=Release /p:TargetFramework=net9.0-windows10.0.19041.0 /p:RuntimeIdentifier=win10-x64
72+
& msbuild ${{env.SAMPLE_CSPROJ}} /p:Configuration=Release /p:TargetFramework=net9.0-windows10.0.19041.0 /p:RuntimeIdentifier=win10-x64
7473
shell: cmd
7574

7675
# Android builds using dotnet build

0 commit comments

Comments
 (0)