-
Notifications
You must be signed in to change notification settings - Fork 2
/
Directory.Build.props
58 lines (44 loc) · 2.17 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
<Project>
<PropertyGroup>
<LangVersion>latest</LangVersion>
</PropertyGroup>
<!-- Common NuGet properties -->
<PropertyGroup>
<Authors>LordMike</Authors>
<Company>MBWarez</Company>
<Copyright>Michael Bisbjerg $([System.DateTime]::Now.ToString(yyyy))</Copyright>
</PropertyGroup>
<!-- Release stuff -->
<PropertyGroup>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<EmbedUntrackedSources>true</EmbedUntrackedSources>
<DebugType>portable</DebugType>
<IncludeSymbols>true</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
<MinVerTagPrefix>v</MinVerTagPrefix>
<!-- Github packages does not support symbols, so we embed pdbs in nupkg (https://github.community/t/does-github-packages-dotnet-nuget-supports-to-publish-snupkg/123286/6) -->
<AllowedOutputExtensionsInPackageBuildOutputFolder Condition="'$(Configuration)'=='Debug'">$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="MinVer" Version="2.5.0" PrivateAssets="all" />
</ItemGroup>
<!-- Deterministic build paths, https://devblogs.microsoft.com/dotnet/producing-packages-with-source-link/#deterministic-builds -->
<PropertyGroup Condition="'$(GITHUB_ACTIONS)' == 'true'">
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
</PropertyGroup>
<!-- Sourcelink -->
<PropertyGroup>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1" PrivateAssets="All"/>
</ItemGroup>
<!-- Set copying files etc. to timeout faster -->
<PropertyGroup>
<CopyRetryCount>2</CopyRetryCount>
<CopyRetryDelayMilliseconds>500</CopyRetryDelayMilliseconds>
</PropertyGroup>
<!-- Ensure AssemblyInfo.cs can be included in <EmbedUntrackedSources> https://github.com/dotnet/sourcelink/issues/572 -->
<Target Name="_workaroundMsBuild1479" BeforeTargets="BeforeCompile" AfterTargets="GenerateAssemblyInfo"></Target>
<Import Project="_Imports\Local.targets" Condition="Exists('_Imports\Local.targets')" />
</Project>