-
Notifications
You must be signed in to change notification settings - Fork 2
/
Directory.Build.props
45 lines (38 loc) · 1.94 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
<!-- this file is imported very early and sets defaults for all projects -->
<Project>
<PropertyGroup>
<!-- default attributes -->
<Product>OkTools</Product>
<Description>These tools are ok.</Description>
<Company>scottbilas</Company>
<Authors>$(Company) Contributors</Authors>
<Copyright>Copyright © $(Authors)</Copyright>
<!-- framework -->
<TargetFramework>net9.0</TargetFramework>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
<AppendRuntimeIdentifierToOutputPath>false</AppendRuntimeIdentifierToOutputPath>
<EnablePreviewFeatures>true</EnablePreviewFeatures>
<!-- compiler -->
<LangVersion>latest</LangVersion>
<DebugSymbols>false</DebugSymbols>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
<EnableNETAnalyzers>true</EnableNETAnalyzers>
<AnalysisLevel>latest</AnalysisLevel>
<NoWarn>$(NoWarn);CS8524;NU1900</NoWarn>
<!-- language -->
<Nullable>enable</Nullable>
<!-- useful paths -->
<OkRoot>$(MSBuildThisFileDirectory)</OkRoot>
<OkSrcRoot>$(OkRoot)src\</OkSrcRoot>
<OkTargetsRoot>$(OkRoot)targets\</OkTargetsRoot>
<!-- build -->
<OutputPath>$(OkRoot)artifacts\build\bin\$(MSBuildProjectName)\$(Configuration)</OutputPath><!-- don't add trailing \ here -->
<OkOutputPath>$(OkRoot)build\$(MSBuildProjectName)\</OkOutputPath>
<OkOutputPath Condition="'$(Configuration)' == 'Debug'">$(OkOutputPath)$(Configuration)\</OkOutputPath>
<OkPublishDir>$(OkRoot)publish\$(MSBuildProjectName)\</OkPublishDir>
<OkPublishDir Condition="'$(Configuration)' == 'Debug'">$(OkPublishDir)$(Configuration)\</OkPublishDir>
<BaseIntermediateOutputPath>$(OkRoot)artifacts\build\obj\$(MSBuildProjectName)\</BaseIntermediateOutputPath>
<GenerateDependencyFile>false</GenerateDependencyFile> <!-- remember to reenable this for test projects -->
</PropertyGroup>
</Project>