aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVasily <JustAMan@users.noreply.github.com>2019-02-15 13:58:49 +0300
committerGitHub <noreply@github.com>2019-02-15 13:58:49 +0300
commit8425d76198c3cfc69b013c93d5056f2329c6ad4c (patch)
treef1456c40d022743519059ed34201675285abbced
parent9bf009c4f88db0c77676139a32978e37aeccd5d8 (diff)
parenta5882ae162e1bdae7f9094c6bb63cf765ad8123f (diff)
Merge pull request #875 from Bond-009/error
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" />