The Free Software Media System - Server Backend & API
Treat warnings as errors for release builds
Bond-009a5882ae162e1
diff --git a/Jellyfin.Server/Jellyfin.Server.csproj b/Jellyfin.Server/Jellyfin.Server.csprojindex b1515df439..fe1397bcbe 100644--- a/Jellyfin.Server/Jellyfin.Server.csproj+++ b/Jellyfin.Server/Jellyfin.Server.csproj@@ -20,6 +20,10 @@<EmbeddedResource Include="Resources/Configuration/*" /></ItemGroup>+ <PropertyGroup Condition=" '$(Configuration)' == 'Release' ">+ <TreatWarningsAsErrors>true</TreatWarningsAsErrors>+ </PropertyGroup>+<!-- Code analysers--><ItemGroup Condition=" '$(Configuration)' == 'Debug' "><PackageReference Include="Microsoft.CodeAnalysis.FxCopAnalyzers" Version="2.6.3" />