-
Notifications
You must be signed in to change notification settings - Fork 0
/
Directory.Build.props
42 lines (34 loc) · 1.58 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
42
<Project>
<!-- Common properties -->
<PropertyGroup>
<!--Setting this to true enables the usage of the latest version of C# language features.-->
<AcceleratBuilnInVisualStudio>true</AcceleratBuilnInVisualStudio>
<!--Setting this to true disables the automatic transitive project references feature.-->
<DisableTransitiveProjectReferences>true</DisableTransitiveProjectReferences>
<!--Specifies the location of the code analysis ruleset file.-->
<CodeAnalysisRuleSet>$(MSBuildThisFileDirectory)CodeAnalysisRules.ruleset</CodeAnalysisRuleSet>
<!-- Enable the last version of C# -->
<LangVersion>latest</LangVersion>
<!-- Enable implict usings -->
<ImplicitUsings>enable</ImplicitUsings>
<!-- Disable the Analyzers in Release configuration -->
<RunAnalyzers Condition="'$(Configuration)' == 'Release'">false</RunAnalyzers>
</PropertyGroup>
<!-- Common files -->
<ItemGroup>
<AdditionalFiles Include="..\..\stylecop.json">
<Link>stylecop.json</Link>
</AdditionalFiles>
</ItemGroup>
<!-- Common NuGet packages -->
<ItemGroup>
<PackageReference Include="SonarAnalyzer.CSharp" Version="9.21.0.86780">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="StyleCop.Analyzers" Version="1.1.118">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</ItemGroup>
</Project>