-
Notifications
You must be signed in to change notification settings - Fork 0
/
Directory.Build.props
executable file
·41 lines (38 loc) · 1.5 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
33
34
35
36
37
38
39
40
41
<Project>
<PropertyGroup>
<TargetFrameworks>
net5.0;net6.0;net7.0;net8.0;
netcoreapp3.0;netcoreapp3.1;
netstandard2.0;netstandard2.1;
net47;net471;net472;net48;net481
</TargetFrameworks>
<LangVersion>12.0</LangVersion>
<CheckEolTargetFramework>false</CheckEolTargetFramework>
<ImplicitUsings>disable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
<PropertyGroup>
<AnalysisLevel>latest</AnalysisLevel>
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<CodeAnalysisTreatWarningsAsErrors>true</CodeAnalysisTreatWarningsAsErrors>
<CodeAnalysisRuleSet>../../.ruleset</CodeAnalysisRuleSet>
<AnalysisMode>All</AnalysisMode>
</PropertyGroup>
<ItemGroup>
<Compile Include="$(MSBuildThisFileDirectory)/Config/Shared/*.cs" Visible="false" />
<AdditionalFiles Include="../../stylecop.json" />
<PackageReference Include="StyleCop.Analyzers">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference
Include="Microsoft.CSharp"
Condition="$(TargetFramework.StartsWith('net4')) OR $(TargetFramework.StartsWith('netstandard2'))" />
</ItemGroup>
<!-- Make project internals visible to test projects with same name
<ItemGroup>
<InternalsVisibleTo Include="$(AssemblyName).Tests" />
</ItemGroup>
-->
</Project>