-
Notifications
You must be signed in to change notification settings - Fork 0
/
Directory.Build.props
39 lines (30 loc) · 1.62 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
<Project>
<PropertyGroup Label="Tooling">
<!-- Language version -->
<LangVersion>preview</LangVersion>
<!-- Enable nullable reference types -->
<Nullable>enable</Nullable>
<!-- Emit compiler generated files so we can inspect them if needed -->
<EmitCompilerGeneratedFiles>true</EmitCompilerGeneratedFiles>
<!-- Remove the .Abstractions namespace from root -->
<RootNamespace Condition="$(MSBuildProjectName.EndsWith('.Abstractions'))">$(MSBuildProjectName.Replace('.Abstractions', ''))</RootNamespace>
<!-- Remove the .Tests namespace from root -->
<RootNamespace Condition="$(MSBuildProjectName.EndsWith('.Tests'))">$(MSBuildProjectName.Replace('.Tests', ''))</RootNamespace>
<!-- Enable implicit namespace imports -->
<ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup>
<PropertyGroup Label="Conventions">
<!-- Set the project type based on the naming convention (should this be directory based?) -->
<Ing_ProjectType Condition="$(MSBuildProjectName.EndsWith('Tests')) And '$(Ing_ProjectType)'==''">Test</Ing_ProjectType>
<Ing_ProjectType Condition="$(MSBuildProjectName.EndsWith('BuildExtensions')) And '$(Ing_ProjectType)'==''">BuildExtension</Ing_ProjectType>
<!-- The default test framework is xunit -->
<Ing_TestFramework Condition="'$(Ing_TestFramework)'==''">xunit</Ing_TestFramework>
</PropertyGroup>
<!-- Conventions for unit test projects -->
<PropertyGroup Condition="'$(Ing_ProjectType)'=='Test'" Label="Testing">
<IsPackable>false</IsPackable>
</PropertyGroup>
<ItemGroup Label="Sources">
<Compile Include="$(MSBuildThisFileDirectory)src\**\*.cs" />
</ItemGroup>
</Project>