From e4d09d7934308007536d666e077d2226921438f5 Mon Sep 17 00:00:00 2001 From: gbakeman Date: Sat, 10 Aug 2024 15:24:05 -0400 Subject: [PATCH] Modify MSBuild command, version upgrades - Upgrade packages to their latest stable versions where available - Merge MSBuild commands into one, should also fix package restoration failure for Common library. --- .github/workflows/build-validate.yaml | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build-validate.yaml b/.github/workflows/build-validate.yaml index 964b5e3..63a50e1 100644 --- a/.github/workflows/build-validate.yaml +++ b/.github/workflows/build-validate.yaml @@ -24,21 +24,18 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - os: [windows-2019] # Should have MSBuild. + os: [windows-latest] # Should have MSBuild. steps: # Make MSBuild available from $PATH. - name: setup-msbuild - uses: microsoft/setup-msbuild@v1.1 + uses: microsoft/setup-msbuild@v2 - name: Checkout Code - uses: actions/checkout@v3 - - - name: Restore Packages - run: msbuild -t:restore + uses: actions/checkout@v4 # msbuild cannot handle .vdproj Installer projects, so only build debug for now. - name: Build solution - run: msbuild $env:SLN_FILE -p:Configuration=Debug + run: msbuild -t:build -restore -p:Configuration=Debug $env:SLN_FILE # For now, let msbuild continue autogenerating assembly versions and base everything off of that. - name: Get AssemblyVersion generated by msbuild @@ -48,7 +45,7 @@ jobs: directory: ${{ env.DEBUG_OUTPUT }} - name: Upload Artifact - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: ${{ format('WinNUT-Client-debugbuild-v{0}', steps.getversion.outputs.version) }} if-no-files-found: error