-
Notifications
You must be signed in to change notification settings - Fork 0
/
Directory.Build.props
32 lines (32 loc) · 1.31 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
30
31
32
<Project>
<ItemGroup Condition="'$(Configuration)'=='Debug'">
<PackageReference Include="StyleCop.Analyzers" Version="1.2.0-beta.435">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</ItemGroup>
<ItemGroup Condition="'$(PUBLISH)'=='true'">
<SourceRoot Include="$(MSBuildThisFileDirectory)/"/>
</ItemGroup>
<ItemGroup Condition="'$(PUBLISH)'!='true'">
<Content Include="$(MSBuildThisFileDirectory)LICENSE">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<AdditionalFiles Include="$(MSBuildThisFileDirectory)stylecop.json" />
</ItemGroup>
<ItemGroup>
<None Remove="README.md" />
<None Remove="$(MSBuildThisFileDirectory)LICENSE" />
<None Remove="$(MSBuildThisFileDirectory)stylecop.json" />
</ItemGroup>
<PropertyGroup Condition="'$(PUBLISH)'!='true'">
<AnalysisMode>AllEnabledByDefault</AnalysisMode>
<AnalysisLevel>5</AnalysisLevel>
</PropertyGroup>
<PropertyGroup>
<CodeAnalysisRuleSet>$(MSBuildThisFileDirectory).ruleset</CodeAnalysisRuleSet>
<DefaultItemExcludes>$(DefaultItemExcludes);README.md</DefaultItemExcludes>
<LangVersion>latest</LangVersion>
<Nullable>enable</Nullable>
</PropertyGroup>
</Project>