aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBond-009 <bond.009@outlook.com>2019-02-12 22:15:11 +0100
committerBond-009 <bond.009@outlook.com>2019-02-12 22:15:11 +0100
commita5882ae162e1bdae7f9094c6bb63cf765ad8123f (patch)
tree7b0a0a5cdb9987f848dc363de4928aa35a10be36
parenteb4b7051676b7493a57a99a821d5dd38bd9d4919 (diff)
Treat warnings as errors for release builds
-rw-r--r--Jellyfin.Server/Jellyfin.Server.csproj4
1 files changed, 4 insertions, 0 deletions
diff --git a/Jellyfin.Server/Jellyfin.Server.csproj b/Jellyfin.Server/Jellyfin.Server.csproj
index b1515df43..fe1397bcb 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" />