-
Notifications
You must be signed in to change notification settings - Fork 2
/
Directory.Build.props
29 lines (25 loc) · 1.11 KB
/
Directory.Build.props
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<Project>
<PropertyGroup>
<LangVersion>12.0</LangVersion>
<Nullable Condition="'$(TargetFramework)' != 'netstandard2.0'">enable</Nullable>
<Nullable Condition="'$(TargetFramework)' == 'netstandard2.0'">annotations</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<WeaverConfiguration>
<Weavers>
<RuntimeNullables />
</Weavers>
</WeaverConfiguration>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)' == 'Release'">
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
</PropertyGroup>
<ItemGroup>
<!-- Fody -->
<PackageReference Include="RuntimeNullables.Fody" Version="1.0.6" PrivateAssets="all" />
<!-- Analyzers -->
<PackageReference Include="DotNetAnalyzers.DocumentationAnalyzers" Version="1.0.0-beta.59" PrivateAssets="all" />
<PackageReference Include="StyleCop.Analyzers" Version="1.2.0-beta.556" PrivateAssets="all" />
<PackageReference Include="Roslynator.Analyzers" Version="4.11.0" PrivateAssets="all" />
</ItemGroup>
</Project>