-
Notifications
You must be signed in to change notification settings - Fork 4
/
Directory.Build.props
48 lines (41 loc) · 1.81 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
43
44
45
46
47
48
<Project>
<!-- Build properties -->
<PropertyGroup>
<!-- Platform & Configuration -->
<Platform Condition=" $(Platform) == '' ">x64</Platform>
<Configuration Condition=" $(Configuration) == '' ">Debug</Configuration>
<!-- Default TargetFramework -->
<TargetFramework>netstandard2.0</TargetFramework>
<!-- Default language version -->
<LangVersion>8.0</LangVersion>
<!-- Other Properties -->
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<Nullable>enable</Nullable>
<NullableContextOptions>enable</NullableContextOptions>
</PropertyGroup>
<!-- Custom directories -->
<PropertyGroup>
<EnlistmentRoot Condition=" $(EnlistmentRoot) == '' ">$(MSBuildThisFileDirectory.TrimEnd("\"))</EnlistmentRoot>
<SourceFolder>$(EnlistmentRoot)/src</SourceFolder>
<DropFolder>$(OutFolder)/drop</DropFolder>
<TestFolder>$(OutFolder)/test</TestFolder>
</PropertyGroup>
<!-- Override default directories -->
<PropertyGroup>
<PublishDir>$(DropFolder)/$(MSBuildProjectName)/$(Configuration)/$(Platform)/</PublishDir>
<VSTestResultsDirectory>$(TestFolder)/</VSTestResultsDirectory>
</PropertyGroup>
<!-- StyleCop settings -->
<PropertyGroup>
<!-- Enable style cop by default -->
<EnableStyleCop Condition=" $(EnableStyleCop) == '' ">false</EnableStyleCop>
</PropertyGroup>
<PropertyGroup Condition=" $(EnableStyleCop) == 'true' ">
<CodeAnalysisRuleSet>$(EnlistmentRoot)/.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
<ItemGroup Condition=" $(EnableStyleCop) == 'true' ">
<PackageReference Include="StyleCop.Analyzers" Version="1.1.118">
<PrivateAssets>all</PrivateAssets>
</PackageReference>
</ItemGroup>
</Project>