-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDirectory.Build.props
39 lines (38 loc) · 1.97 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>
<!-- Project defaults -->
<PropertyGroup>
<GeneratePackageOnBuild>false</GeneratePackageOnBuild>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<!--Generate debug symbols and embed them in the build output.-->
<DebugType>embedded</DebugType>
<DebugSymbols>true</DebugSymbols>
<!--Set the solution directory to the parent directory of the build file.-->
<SolutionDir Condition="'$(SolutionDir)' == ''">$(MSBuildThisFileDirectory)..\</SolutionDir>
<!--Generate XML documentation file-->
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<!--Disable warnings from XML documentation - CS1591;CS1571;CS1573;CS1574;CS1723; - -->
<!--Disable warnings NuGet vulnerabilities - NU1901;NU1902;NU1903; - -->
<NoWarn>CS1591;CS1571;CS1573;CS1574;CS1723;NU1901;NU1902;NU1903;</NoWarn>
</PropertyGroup>
<!-- Package defaults -->
<PropertyGroup Condition="'$(MSBuildProjectName)' == '' Or $(MSBuildProjectName.StartsWith('ES.FX'))">
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<NoWarn>$(NoWarn);NU5104</NoWarn>
<PackageOutputDir>$(SolutionDir).artifacts/nuget</PackageOutputDir>
<Authors>emberstack</Authors>
<Company>EmberStack</Company>
<RepositoryUrl>https://github.com/emberstack/ES.FX</RepositoryUrl>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
</PropertyGroup>
<!--Test projects-->
<ItemGroup Condition="'$(MSBuildProjectName)' == '' Or $(MSBuildProjectName.Contains('.Tests'))">
<AssemblyAttribute Include="System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverageAttribute" />
</ItemGroup>
<PropertyGroup Condition="'$(MSBuildProjectName)' == '' Or $(MSBuildProjectName.Contains('.Tests'))">
<GeneratePackageOnBuild>false</GeneratePackageOnBuild>
<VSTestLogger>trx%3bLogFileName=$(MSBuildProjectName).trx</VSTestLogger>
<VSTestResultsDirectory>$(MSBuildThisFileDirectory).artifacts/TestResults</VSTestResultsDirectory>
</PropertyGroup>
</Project>