generated from ap0llo/project-template
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Directory.Build.props
66 lines (57 loc) · 2.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
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
<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>
<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>
</PropertyGroup>
<!-- Reference Nerdbank.GitVersioning -->
<ItemGroup>
<PackageReference Include="Nerdbank.GitVersioning" Version="3.5.119" PrivateAssets="all" />
</ItemGroup>
<!-- Compiler settings-->
<PropertyGroup>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<LangVersion>11.0</LangVersion>
<Nullable>enable</Nullable>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<!-- Disable warning CS1591 (missing XML documentation comments) -->
<NoWarn>$(NoWarn),1591</NoWarn>
</PropertyGroup>
<!-- Reference SourceLink (see https://github.com/dotnet/sourcelink) -->
<PropertyGroup>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<GenerateRepositoryUrlAttribute>false</GenerateRepositoryUrlAttribute>
<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/gh-badges-sharp</PackageProjectUrl>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<Description>A C#/.NET port of the gh-badges library.</Description>
<Copyright>Copyright (c) 2019-2022, Andreas Gruenwald</Copyright>
</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>
<!-- Add .NET Framwork reference assemblies when building for .NET Framework -->
<ItemGroup Condition=" '$(TargetFrameworkIdentifier)' == '.NETFramework' ">
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.3" PrivateAssets="all" />
</ItemGroup>
</Project>