Skip to content

Commit c180a93

Browse files
committed
added Directory.Build.props
1 parent df8473b commit c180a93

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

Directory.Build.props

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<Project>
2+
<PropertyGroup>
3+
<TargetFramework>net8.0</TargetFramework>
4+
<ImplicitUsings>enable</ImplicitUsings>
5+
<Nullable>enable</Nullable>
6+
<LangVersion>latest</LangVersion>
7+
<EnableNETAnalyzers>True</EnableNETAnalyzers>
8+
<AnalysisLevel>latest-recommended</AnalysisLevel>
9+
<EnforceCodeStyleInBuild>True</EnforceCodeStyleInBuild>
10+
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
11+
</PropertyGroup>
12+
13+
<Choose>
14+
<When Condition="$(MSBuildProjectName.EndsWith('Tests'))">
15+
<PropertyGroup>
16+
<IsPackable>false</IsPackable>
17+
<IsTestProject>true</IsTestProject>
18+
<CollectCoverage>true</CollectCoverage>
19+
<CoverletOutputFormat>opencover</CoverletOutputFormat>
20+
</PropertyGroup>
21+
</When>
22+
</Choose>
23+
</Project>

0 commit comments

Comments
 (0)