-
-
Notifications
You must be signed in to change notification settings - Fork 35
Expand file tree
/
Copy pathDirectory.Build.props
More file actions
31 lines (25 loc) · 1.15 KB
/
Directory.Build.props
File metadata and controls
31 lines (25 loc) · 1.15 KB
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
30
31
<Project>
<PropertyGroup>
<AnalysisMode>All</AnalysisMode>
<EmbedUntrackedSources>true</EmbedUntrackedSources>
<EnableNETAnalyzers>true</EnableNETAnalyzers>
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<RestoreLockedMode Condition="'$(CI)' != ''">true</RestoreLockedMode>
<RestorePackagesWithLockFile>true</RestorePackagesWithLockFile>
</PropertyGroup>
<PropertyGroup>
<NoWarn>$(NoWarn);CA1014</NoWarn> <!-- Mark assemblies with CLSCompliantAttribute -->
<NoWarn>$(NoWarn);EnableGenerateDocumentationFile</NoWarn> <!-- workaround for https://github.com/dotnet/roslyn/issues/41640 -->
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)'=='Release'">
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
</PropertyGroup>
<ItemGroup>
<Compile Include="$(MSBuildThisFileDirectory)/Global.cs" Link="Global.cs" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.VisualStudio.Threading.Analyzers" Version="17.14.15" PrivateAssets="All" />
</ItemGroup>
</Project>