From 7edc7336583db9807fb638c81b8f907f94d3ee20 Mon Sep 17 00:00:00 2001 From: Martijn Laarman Date: Mon, 5 Feb 2024 15:12:30 +0100 Subject: [PATCH] attempt to clean prior to building --- .github/workflows/test-windows-iis.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test-windows-iis.yml b/.github/workflows/test-windows-iis.yml index a95709d3c..93c88bf01 100644 --- a/.github/workflows/test-windows-iis.yml +++ b/.github/workflows/test-windows-iis.yml @@ -40,9 +40,19 @@ jobs: with: path: ~/.nuget/packages key: ${{ runner.os }}-nuget-${{ hashFiles('**/*.[cf]sproj*') }} + - name: Add msbuild to PATH - uses: microsoft/setup-msbuild@v1.3.1 + uses: microsoft/setup-msbuild@v2 + + - name: Clean the application + shell: cmd + run: msbuild /t:Clean /p:Configuration=Release + + - name: Restore the application + shell: cmd + run: msbuild /t:Restore /p:Configuration=Release + - name: Build the application shell: cmd run: |