diff options
| author | Vasily <JustAMan@users.noreply.github.com> | 2019-02-15 13:58:49 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-02-15 13:58:49 +0300 |
| commit | 8425d76198c3cfc69b013c93d5056f2329c6ad4c (patch) | |
| tree | f1456c40d022743519059ed34201675285abbced | |
| parent | 9bf009c4f88db0c77676139a32978e37aeccd5d8 (diff) | |
| parent | a5882ae162e1bdae7f9094c6bb63cf765ad8123f (diff) | |
Merge pull request #875 from Bond-009/error
Treat warnings as errors for release builds
| -rw-r--r-- | Jellyfin.Server/Jellyfin.Server.csproj | 4 |
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" /> |
