forked from ap0llo/mddocs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Directory.Build.props
80 lines (70 loc) · 3.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
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
<Project>
<!--
Configure Output paths :
Output paths of the build needs to match the expectations of the Cake-based build.
See https://github.com/ap0llo/shared-build#project-output-structure for details
-->
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<!-- Output paths -->
<BaseOutputPath Condition="'$(BUILD_BINARIESDIRECTORY)' != '' ">$(BUILD_BINARIESDIRECTORY)</BaseOutputPath>
<BaseOutputPath Condition="'$(BaseOutputPath)' == '' ">$(MSBuildThisFileDirectory)Binaries/</BaseOutputPath>
<BaseOutputPath Condition="!HasTrailingSlash('BaseOutputPath')">$(BaseOutputPath)/</BaseOutputPath>
<OutputPath>$(BaseOutputPath)$(Configuration)/$(MSBuildProjectName)/</OutputPath>
<PackageOutputPath>$(BaseOutputPath)$(Configuration)/packages/</PackageOutputPath>
<VSTestResultsDirectory>$(BaseOutputPath)TestResults/</VSTestResultsDirectory>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<!--
Suppressed warnings:
- NU5125: "The 'licenseUrl' element will be deprecated. Consider using the 'license' element instead"
-->
<NoWarn>NU5125</NoWarn>
<!-- Make NuGet packaging opt-in instead of opt-out. -->
<IsPackable>false</IsPackable>
</PropertyGroup>
<!-- Reference Nerdbank.GitVersioning -->
<ItemGroup>
<PackageReference Include="Nerdbank.GitVersioning" Version="3.5.119" PrivateAssets="all" />
<PackageReference Include="Microsoft.DotNet.Analyzers.Compatibility" Version="0.2.12-alpha" PrivateAssets="all" />
</ItemGroup>
<!-- Compiler settings-->
<PropertyGroup>
<LangVersion>11.0</LangVersion>
<Nullable>enable</Nullable>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
</PropertyGroup>
<!-- Enable deterministic builds when building in Azure DevOps-->
<PropertyGroup Condition=" '$(TF_BUILD)' == 'true' ">
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
<Deterministic>true</Deterministic>
</PropertyGroup>
<!-- Reference SourceLink (see https://github.com/dotnet/sourcelink) -->
<PropertyGroup>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
<EmbedUntrackedSources>true</EmbedUntrackedSources>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1" PrivateAssets="All" />
</ItemGroup>
<!--NuGet package properties -->
<PropertyGroup>
<Authors>Andreas Gruenwald</Authors>
<PackageProjectUrl>https://github.com/ap0llo/mddocs</PackageProjectUrl>
<PackageLicenseUrl>https://github.com/ap0llo/mddocs/blob/master/LICENSE</PackageLicenseUrl>
<Description>A tool to generate documentaton as Markdown</Description>
<Copyright>Copyright (c) 2018-2022, Andreas Gruenwald</Copyright>
<PackageTags>markdown dotnet api documentation</PackageTags>
<Product>MdDocs</Product>
</PropertyGroup>
<!-- Use NuGet lock file -->
<PropertyGroup>
<RestorePackagesWithLockFile>true</RestorePackagesWithLockFile>
<!-- When running in Azure Pipelines, use locked mode -->
<RestoreLockedMode Condition=" '$(TF_BUILD)' == 'true' ">true</RestoreLockedMode>
</PropertyGroup>
<!-- Include .NET Framework reference assemblies to enable building for .NET Framework without requiring the targeting packa to be installed -->
<ItemGroup Condition=" '$(TargetFrameworkIdentifier)' == '.NETFramework'" >
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.3" PrivateAssets="All" />
</ItemGroup>
</Project>