diff --git a/.github/workflows/build-on-tag.yml b/.github/workflows/build-on-tag.yml index 40a1c6b..d7ee809 100644 --- a/.github/workflows/build-on-tag.yml +++ b/.github/workflows/build-on-tag.yml @@ -14,13 +14,14 @@ jobs: uses: actions/checkout@v3 - name: Locate MSBuild - id: locate-msbuild run: | - echo "##[set-output name=vs-path;]$(vswhere -latest -products * -requires Microsoft.Component.MSBuild -property installationPath)" - echo "MSBuild located at ${{ steps.locate-msbuild.outputs.vs-path }}" + $msbuildPath = vswhere -latest -products * -requires Microsoft.Component.MSBuild -property installationPath + echo "MSBuild located at $msbuildPath" + echo "MSBUILD_PATH=$msbuildPath\MSBuild\Current\Bin\MSBuild.exe" >> $GITHUB_ENV - name: Build the solution - run: ${{ steps.locate-msbuild.outputs.vs-path }}\MSBuild\Current\Bin\MSBuild.exe /t:Build /p:Configuration=Release /p:Platform=x64 YourSolution.sln + run: | + &"${{ env.MSBUILD_PATH }}" /t:Build /p:Configuration=Release /p:Platform=x64 YourSolution.sln - name: Archive build artifacts uses: actions/upload-artifact@v3