forked from BSData/phalanx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDirectory.Build.props
26 lines (23 loc) · 1.22 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
<Project>
<PropertyGroup>
<LangVersion>9</LangVersion>
<Nullable>enable</Nullable>
<Authors>Amadeusz Sadowski and contributors</Authors>
<Company>BSData</Company>
<Copyright>Copyright © $(Authors)</Copyright>
<IsPackable>false</IsPackable>
</PropertyGroup>
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<IsTestProject>$(MSBuildProjectName.Contains('Test'))</IsTestProject>
<!-- Put stuff into a common directory ./.build (bin,obj) -->
<BaseOutputPath>$(MSBuildThisFileDirectory).build/bin/$(MSBuildProjectName)/</BaseOutputPath>
<BaseIntermediateOutputPath>$(MSBuildThisFileDirectory).build/obj/$(MSBuildProjectName)/</BaseIntermediateOutputPath>
<!-- Due to https://github.com/dotnet/aspnetcore/issues/25959 we need it relative -->
<BaseIntermediateOutputPath>$([MSBuild]::MakeRelative($(MSBuildProjectDirectory), $(BaseIntermediateOutputPath)))</BaseIntermediateOutputPath>
<!-- Don't warn on API docs -->
<NoWarn>$(NoWarn);CS1591</NoWarn>
<!-- Error out on warnings when releasing -->
<MSBuildTreatWarningsAsErrors Condition=" '$(Configuration)' == 'Release' ">true</MSBuildTreatWarningsAsErrors>
</PropertyGroup>
</Project>