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.Photos | |
| 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.Photos')
| -rw-r--r-- | Emby.Photos/Emby.Photos.csproj | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/Emby.Photos/Emby.Photos.csproj b/Emby.Photos/Emby.Photos.csproj index 64692c370..4bd0f1e4a 100644 --- a/Emby.Photos/Emby.Photos.csproj +++ b/Emby.Photos/Emby.Photos.csproj @@ -1,5 +1,9 @@ <Project Sdk="Microsoft.NET.Sdk"> + <PropertyGroup Condition=" '$(Configuration)' == 'Release' "> + <TreatWarningsAsErrors>true</TreatWarningsAsErrors> + </PropertyGroup> + <ItemGroup> <ProjectReference Include="..\MediaBrowser.Controller\MediaBrowser.Controller.csproj" /> <ProjectReference Include="..\MediaBrowser.Model\MediaBrowser.Model.csproj" /> @@ -20,12 +24,12 @@ <TreatWarningsAsErrors>true</TreatWarningsAsErrors> </PropertyGroup> - <!-- Code analysers--> - <ItemGroup Condition=" '$(Configuration)' == 'Debug' "> + <!-- Code Analyzers--> + <!--<ItemGroup Condition=" '$(Configuration)' == 'Debug' "> <PackageReference Include="Microsoft.CodeAnalysis.FxCopAnalyzers" Version="2.9.7" /> <PackageReference Include="StyleCop.Analyzers" Version="1.1.118" /> <PackageReference Include="SerilogAnalyzer" Version="0.15.0" /> - </ItemGroup> + </ItemGroup>--> <PropertyGroup Condition=" '$(Configuration)' == 'Debug' "> <CodeAnalysisRuleSet>../jellyfin.ruleset</CodeAnalysisRuleSet> |
