-
Notifications
You must be signed in to change notification settings - Fork 5
/
Directory.Build.props
95 lines (84 loc) · 3.98 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
<Project>
<PropertyGroup>
<LangVersion>latest</LangVersion>
<NetStandardVersion>netstandard2.1</NetStandardVersion>
<NetCoreAppVersion>net6.0</NetCoreAppVersion>
</PropertyGroup>
<PropertyGroup>
<ResolveNuGetPackages>true</ResolveNuGetPackages>
<NetCorePackageVersion>6.0.*</NetCorePackageVersion>
<EFCorePackageVersion>6.0.*</EFCorePackageVersion>
</PropertyGroup>
<!-- Output-related settings -->
<PropertyGroup>
<Configurations>Debug;Release</Configurations>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
<AppendRuntimeIdentifierToOutputPath>true</AppendRuntimeIdentifierToOutputPath>
<SolutionDir Condition="'$(SolutionDir)'==''">$(MSBuildThisFileDirectory)</SolutionDir>
<OutputPath>$(SolutionDir)\bin\$(Configuration)\</OutputPath>
</PropertyGroup>
<!-- NuGet packaging-related stuff -->
<PropertyGroup>
<IsPackable>false</IsPackable>
<GeneratePackageOnBuild>false</GeneratePackageOnBuild>
<PackageLicenseFile>LICENSE</PackageLicenseFile>
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
<Company>CodeCave LLC</Company>
<Authors>Yaroslav Zhmayev</Authors>
<Copyright>Copyright © $([System.DateTime]::Now.ToString(yyyy)) CodeCave LLC - All Rights Reserved</Copyright>
<NeutralLanguage>en</NeutralLanguage>
</PropertyGroup>
<ItemGroup Condition="'$(IsPackable)' == 'true'">
<None Include="$(SolutionDir)\LICENSE" Pack="true" PackagePath="" />
</ItemGroup>
<!-- Some tweaks for Unit Test projects, e.g. xUnit -->
<PropertyGroup>
<IsTestProject Condition="'$(IsTestProject)' == ''">$(MSBuildProjectName.Contains('.Test'))</IsTestProject>
</PropertyGroup>
<PropertyGroup Condition="'$(IsTestProject)' == 'true'">
<!-- Changing output path for xUnit tests, so it won't break actual compiled code by shipping its Newtonsoft.Json v9.0.0 -->
<OutputPath>bin\$(Configuration)\</OutputPath>
<!-- Mark the project as being a test project -->
<SonarQubeTestProject>true</SonarQubeTestProject>
</PropertyGroup>
<!-- Coverage-related settings -->
<PropertyGroup>
<CollectCoverage>true</CollectCoverage>
<CoverletOutputFormat>opencover</CoverletOutputFormat>
<CoverletOutput>$(SolutionDir)/tests/coverage/</CoverletOutput>
</PropertyGroup>
<!-- Docker-related settings -->
<PropertyGroup Condition="Exists('$(SolutionDir)\docker-compose.dcproj') And '$(IsTestProject)' != 'true'">
<Configurations>$(Configurations);DebugDocker</Configurations>
<DockerDefaultTargetOS>Linux</DockerDefaultTargetOS>
<DockerfileContext>..\..</DockerfileContext>
<DockerComposeProjectPath>$(DockerfileContext)\docker-compose.dcproj</DockerComposeProjectPath>
</PropertyGroup>
<PropertyGroup Condition="$(Configuration.Contains('Docker'))">
<OutputPath>bin\Debug\</OutputPath>
</PropertyGroup>
<!-- Debug-related settings -->
<PropertyGroup>
<Configuration Condition="'$(Configuration)' == ''">Debug</Configuration>
<Platform Condition="'$(Platform)' == ''">AnyCPU</Platform>
</PropertyGroup>
<PropertyGroup Condition="$(Configuration.Contains('Debug'))">
<DefineConstants>$(DefineConstants);DEBUG</DefineConstants>
<DebugSymbols>true</DebugSymbols>
<DebugType>portable</DebugType>
</PropertyGroup>
<PropertyGroup Condition="'$(OS)' == 'Windows_NT' And $(TargetFramework.Contains('net4'))">
<DebugType>full</DebugType>
</PropertyGroup>
<!-- Documentation-related settings -->
<PropertyGroup>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<!--
Make sure any documentation comments which are included in code get checked for syntax during the build, but do
not report warnings for missing comments.
CS1573: Parameter 'parameter' has no matching param tag in the XML comment for 'parameter' (but other parameters do)
CS1591: Missing XML comment for publicly visible type or member 'Type_or_Member'
-->
<NoWarn>$(NoWarn),1573,1591,1712</NoWarn>
</PropertyGroup>
</Project>