Enable TreatWarningsAsErrors for more projects

This commit is contained in:
Bond-009 2020-06-03 13:22:40 +02:00
parent 40502a33e0
commit af93ec750c
5 changed files with 7 additions and 0 deletions

View file

@ -9,6 +9,7 @@
<TargetFramework>netstandard2.1</TargetFramework>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<Nullable>enable</Nullable>
</PropertyGroup>
<ItemGroup>

View file

@ -1,3 +1,5 @@
#nullable disable
namespace Jellyfin.Api.Models.StartupDtos
{
/// <summary>

View file

@ -1,3 +1,5 @@
#nullable disable
namespace Jellyfin.Api.Models.StartupDtos
{
/// <summary>

View file

@ -4,6 +4,7 @@
<TargetFrameworks>netstandard2.0;netstandard2.1</TargetFrameworks>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<TreatWarningsAsErrors Condition=" '$(Configuration)' == 'Release' ">true</TreatWarningsAsErrors>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">

View file

@ -14,6 +14,7 @@
<PropertyGroup>
<TargetFramework>netstandard2.1</TargetFramework>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
</PropertyGroup>
</Project>