-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDirectory.Build.props
46 lines (40 loc) · 1.85 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
<Project>
<PropertyGroup>
<TargetFrameworks>netstandard2.0;net8.0;net9.0</TargetFrameworks>
<Configurations>Debug;Release</Configurations>
<LangVersion>latest</LangVersion>
<ImplicitUsings>enable</ImplicitUsings>
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
</PropertyGroup>
<PropertyGroup>
<Version>65534.65534.65534.65534</Version>
<Version Condition=" '$(BUILD_VERSION)' != '' ">$(BUILD_VERSION)</Version>
<Copyright>Copyright © David Makovský 2016-$([System.DateTime]::Now.ToString(yyyy))</Copyright>
<Company>David Makovský</Company>
<Authors>David Makovský</Authors>
</PropertyGroup>
<!-- Code quality -->
<PropertyGroup>
<Nullable>enable</Nullable>
<EnableNETAnalyzers>true</EnableNETAnalyzers>
<Deterministic>false</Deterministic>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
<DefineConstants>$(DefineConstants);DEBUG;TRACE</DefineConstants>
</PropertyGroup>
<!-- Add SourceLink info when running on CI pipeline -->
<PropertyGroup Condition=" '$(CI)' != '' ">
<!-- Enables deterministic build -->
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
<!-- Publish the repository URL in the built .nupkg (in the NuSpec <Repository> element) -->
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<!-- Embed source files that are not tracked by the source control manager in the PDB -->
<EmbedUntrackedSources>true</EmbedUntrackedSources>
<!-- Embed symbols containing Source Link in the main file (exe/dll) -->
<DebugType>embedded</DebugType>
</PropertyGroup>
<ItemGroup Condition=" '$(CI)' != '' ">
<!-- PackageReference specific to GitHub repositories when running on GitHub pipeline -->
<PackageReference Include="Microsoft.SourceLink.GitHub" PrivateAssets="All"/>
</ItemGroup>
</Project>