aboutsummaryrefslogtreecommitdiff
path: root/Directory.Build.props
diff options
context:
space:
mode:
authorCody Robibero <cody@robibe.ro>2021-11-08 12:39:02 -0700
committerCody Robibero <cody@robibe.ro>2021-11-08 12:40:52 -0700
commit64652b639299ecd9a692f89a7bbda3f827129fa3 (patch)
tree7d3cfe217f61c238406383e48e5cad47c4f4d95d /Directory.Build.props
parent40045d21470ce0eb15e5c9700d6a1449dbf7c36e (diff)
Fix and disable new dotnet6 warnings
Diffstat (limited to 'Directory.Build.props')
-rw-r--r--Directory.Build.props5
1 files changed, 4 insertions, 1 deletions
diff --git a/Directory.Build.props b/Directory.Build.props
index b899999ef..d243cde2b 100644
--- a/Directory.Build.props
+++ b/Directory.Build.props
@@ -3,10 +3,13 @@
<PropertyGroup>
<Nullable>enable</Nullable>
- <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<CodeAnalysisRuleSet>$(MSBuildThisFileDirectory)/jellyfin.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
+ <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
+ </PropertyGroup>
+
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
<AnalysisMode>AllEnabledByDefault</AnalysisMode>
</PropertyGroup>