Skip to content

Commit 9118ef3

Browse files
committed
remove & char
1 parent 3a2a73c commit 9118ef3

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

.github/workflows/dotnet-windows.yml

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -45,31 +45,25 @@ jobs:
4545
dotnet workload install maui-windows
4646
dotnet workload update
4747
48-
# 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
5448

5549
- name: Restore library dependencies (Windows)
5650
run: |
57-
& msbuild ${{env.LIB_CSPROJ}} /t:Restore /p:TargetFramework=net9.0-windows10.0.19041.0 /p:RuntimeIdentifier=win10-x64
51+
msbuild ${{env.LIB_CSPROJ}} /t:Restore /p:TargetFramework=net9.0-windows10.0.19041.0 /p:RuntimeIdentifier=win10-x64
5852
shell: cmd
5953

6054
- name: Build library (Windows)
6155
run: |
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 }}
56+
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 }}
6357
shell: cmd
6458

6559
- name: Restore sample dependencies (Windows)
6660
run: |
67-
& msbuild ${{env.SAMPLE_CSPROJ}} /t:Restore /p:TargetFramework=net9.0-windows10.0.19041.0 /p:RuntimeIdentifier=win10-x64
61+
msbuild ${{env.SAMPLE_CSPROJ}} /t:Restore /p:TargetFramework=net9.0-windows10.0.19041.0 /p:RuntimeIdentifier=win10-x64
6862
shell: cmd
6963

7064
- name: Build Sample app (Windows)
7165
run: |
72-
& msbuild ${{env.SAMPLE_CSPROJ}} /p:Configuration=Release /p:TargetFramework=net9.0-windows10.0.19041.0 /p:RuntimeIdentifier=win10-x64
66+
msbuild ${{env.SAMPLE_CSPROJ}} /p:Configuration=Release /p:TargetFramework=net9.0-windows10.0.19041.0 /p:RuntimeIdentifier=win10-x64
7367
shell: cmd
7468

7569
# Android builds using dotnet build

0 commit comments

Comments
 (0)