aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/Emby.Server.Implementations.csproj
diff options
context:
space:
mode:
authorVasily <JustAMan@users.noreply.github.com>2019-03-12 11:31:22 +0300
committerGitHub <noreply@github.com>2019-03-12 11:31:22 +0300
commit497b4f834fcf545e3b417dddb2ab3d86e20b2998 (patch)
tree7ea5e5d969133bbaeff73daeda466d691f95f9ed /Emby.Server.Implementations/Emby.Server.Implementations.csproj
parentf77af5f6e4cce85a5fc638e8da20cb0d56a899da (diff)
parent620d7b560d0b72f532d96a5b459f14fd4ad3044a (diff)
Merge pull request #1021 from Bond-009/failonwarn
Fail on warnings for Jellyfin.Server
Diffstat (limited to 'Emby.Server.Implementations/Emby.Server.Implementations.csproj')
-rw-r--r--Emby.Server.Implementations/Emby.Server.Implementations.csproj15
1 files changed, 15 insertions, 0 deletions
diff --git a/Emby.Server.Implementations/Emby.Server.Implementations.csproj b/Emby.Server.Implementations/Emby.Server.Implementations.csproj
index 39e9ed375..3cbd2792d 100644
--- a/Emby.Server.Implementations/Emby.Server.Implementations.csproj
+++ b/Emby.Server.Implementations/Emby.Server.Implementations.csproj
@@ -47,6 +47,21 @@
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
</PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
+ <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
+ </PropertyGroup>
+
+ <!-- Code analysers-->
+ <ItemGroup Condition=" '$(Configuration)' == 'Debug' ">
+ <PackageReference Include="Microsoft.CodeAnalysis.FxCopAnalyzers" Version="2.6.3" />
+ <PackageReference Include="StyleCop.Analyzers" Version="1.0.2" />
+ <PackageReference Include="SerilogAnalyzer" Version="0.15.0" />
+ </ItemGroup>
+
+ <PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
+ <CodeAnalysisRuleSet>../jellyfin.ruleset</CodeAnalysisRuleSet>
+ </PropertyGroup>
+
<ItemGroup>
<EmbeddedResource Include="Localization\iso6392.txt" />
<EmbeddedResource Include="Localization\countries.json" />