diff options
| author | Bond_009 <bond.009@outlook.com> | 2019-12-13 20:11:37 +0100 |
|---|---|---|
| committer | Bond_009 <bond.009@outlook.com> | 2019-12-13 20:11:37 +0100 |
| commit | 5a8e972952e45ff7361d8370e289eb44911b914c (patch) | |
| tree | 053ccf6920a20a3fdb550791f8895cfd0c99224b /Emby.Naming/Emby.Naming.csproj | |
| parent | 54dbdc695a1c4d3b987f9fd91be55ff109975a43 (diff) | |
Enable TreatWarningsAsErrors for some projects
Analyzers are only run in debug build, so setting TreatWarningsAsErrors
for release build will catch the compiler warnings until we resolve all
analyzer warnings.
Diffstat (limited to 'Emby.Naming/Emby.Naming.csproj')
| -rw-r--r-- | Emby.Naming/Emby.Naming.csproj | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/Emby.Naming/Emby.Naming.csproj b/Emby.Naming/Emby.Naming.csproj index 7258beaf4..c69b36894 100644 --- a/Emby.Naming/Emby.Naming.csproj +++ b/Emby.Naming/Emby.Naming.csproj @@ -6,6 +6,10 @@ <GenerateDocumentationFile>true</GenerateDocumentationFile> </PropertyGroup> + <PropertyGroup Condition=" '$(Configuration)' == 'Release' "> + <TreatWarningsAsErrors>true</TreatWarningsAsErrors> + </PropertyGroup> + <ItemGroup> <Compile Include="..\SharedVersion.cs" /> </ItemGroup> @@ -21,13 +25,13 @@ <RepositoryUrl>https://github.com/jellyfin/jellyfin</RepositoryUrl> </PropertyGroup> - <!-- Code analysers--> - <ItemGroup Condition=" '$(Configuration)' == 'Debug' "> + <!-- Code Analyzers--> + <!-- <ItemGroup Condition=" '$(Configuration)' == 'Debug' "> <PackageReference Include="Microsoft.CodeAnalysis.FxCopAnalyzers" Version="2.9.7" PrivateAssets="All" /> <PackageReference Include="SerilogAnalyzer" Version="0.15.0" PrivateAssets="All" /> <PackageReference Include="StyleCop.Analyzers" Version="1.1.118" PrivateAssets="All" /> <PackageReference Include="SmartAnalyzers.MultithreadingAnalyzer" Version="1.1.31" PrivateAssets="All" /> - </ItemGroup> + </ItemGroup>--> <PropertyGroup Condition=" '$(Configuration)' == 'Debug' "> <CodeAnalysisRuleSet>../jellyfin.ruleset</CodeAnalysisRuleSet> |
