From 3f9aca3fe0991478870bddf114d6d86eac4ea4b5 Mon Sep 17 00:00:00 2001 From: nitrobass24 Date: Fri, 27 Feb 2026 18:29:26 -0600 Subject: [PATCH] Fix CI: use dotnet msbuild -restore to properly disable analyzers The separate restore + build steps caused StyleCop analyzers to be restored unconditionally, then EnableAnalyzers=false had no effect since packages were already resolved. Using dotnet msbuild -restore (matching upstream build.sh) passes the property during both restore and build phases. --- .github/workflows/build.yml | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 90b712486..59cf58d3d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -46,14 +46,10 @@ jobs: with: dotnet-version: ${{ env.DOTNET_VERSION }} - - name: Restore - run: dotnet restore src/Prowlarr.sln - - name: Build run: >- - dotnet build src/Prowlarr.sln - --no-restore - -c Release + dotnet msbuild -restore src/Prowlarr.sln + -p:Configuration=Release -p:Platform=${{ matrix.platform }} -p:EnableAnalyzers=false @@ -85,14 +81,10 @@ jobs: with: dotnet-version: ${{ env.DOTNET_VERSION }} - - name: Restore - run: dotnet restore src/Prowlarr.sln - - name: Build run: >- - dotnet build src/Prowlarr.sln - --no-restore - -c Release + dotnet msbuild -restore src/Prowlarr.sln + -p:Configuration=Release -p:Platform=${{ matrix.platform }} -p:EnableAnalyzers=false