Skip to content

Commit 29b3cce

Browse files
authored
Create Directory.Build.props (dotnet#8576)
1 parent 47a8cb5 commit 29b3cce

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

snippets/Directory.Build.props

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<Project>
2+
<PropertyGroup>
3+
<!-- For non-SDK projects that import this file and then import Microsoft.Common.props,
4+
tell Microsoft.Common.props not to import Directory.Build.props again. -->
5+
<ImportDirectoryBuildProps>false</ImportDirectoryBuildProps>
6+
<!-- Enable .NET code analysis (this is necessary for projects that target 3.1 or earlier). -->
7+
<EnableNETAnalyzers>true</EnableNETAnalyzers>
8+
<AnalysisLevel>latest</AnalysisLevel>
9+
<AnalysisLevelSecurity>latest-recommended</AnalysisLevelSecurity>
10+
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
11+
</PropertyGroup>
12+
</Project>

0 commit comments

Comments
 (0)