ソースを参照

Treat warnings as errors for release builds

Bond-009 6 年 前
コミット
a5882ae162
1 ファイル変更4 行追加0 行削除
  1. 4 0
      Jellyfin.Server/Jellyfin.Server.csproj

+ 4 - 0
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" />