From 0e095834f38a4be9696f444655cbbbe7ce074aed Mon Sep 17 00:00:00 2001 From: nitrobass24 Date: Mon, 6 Apr 2026 21:59:35 -0500 Subject: [PATCH] Fix Docker build: disable analyzers at restore time too StyleCop PackageReference is conditionally included based on EnableAnalyzers at restore time. Without it during restore, the analyzer DLLs get restored and run during publish regardless. Co-Authored-By: Claude Opus 4.6 (1M context) --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 3d0afa92a..21e13c659 100644 --- a/Dockerfile +++ b/Dockerfile @@ -27,7 +27,7 @@ COPY src/Prowlarr.Http/Prowlarr.Http.csproj src/Prowlarr.Http/ COPY src/ServiceHelpers/ServiceInstall/ServiceInstall.csproj src/ServiceHelpers/ServiceInstall/ COPY src/ServiceHelpers/ServiceUninstall/ServiceUninstall.csproj src/ServiceHelpers/ServiceUninstall/ -RUN dotnet restore src/NzbDrone.Console/Prowlarr.Console.csproj -r "$(cat /tmp/rid)" -p:SelfContained=true +RUN dotnet restore src/NzbDrone.Console/Prowlarr.Console.csproj -r "$(cat /tmp/rid)" -p:SelfContained=true -p:EnableAnalyzers=false # Copy remaining source and build COPY src/ src/