generated from jmarolf/dotnet-start
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDirectory.Build.props
65 lines (57 loc) · 2.58 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
<?xml version="1.0" encoding="utf-8"?>
<Project>
<!-- Import our custom build layout -->
<Import Project="eng\Settings.props" />
<!-- SDK settings -->
<PropertyGroup>
<!-- We set "allowPrerelease": true in our global.json file so don't warn us -->
<SuppressNETCoreSdkPreviewMessage>true</SuppressNETCoreSdkPreviewMessage>
</PropertyGroup>
<!-- Nuget settings -->
<PropertyGroup>
<!-- Use Directory.Packages.props for nuget package versions -->
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
<!-- Enable deterministic restore -->
<RestorePackagesWithLockFile>true</RestorePackagesWithLockFile>
<!-- Enable faster restore times -->
<RestoreUseStaticGraphEvaluation>true</RestoreUseStaticGraphEvaluation>
</PropertyGroup>
<!-- Compiler settings -->
<PropertyGroup>
<AnalysisLevel>6</AnalysisLevel> <!-- Opt into more advanced analysis -->
<LangVersion>9</LangVersion> <!-- Ensure all projects use the latest language version -->
<Nullable>enable</Nullable> <!-- Turn on nullable-reference-type analysis -->
</PropertyGroup>
<!-- Debug Symbol settings -->
<PropertyGroup>
<!--
Official build:
- Build standalone Portable PDBs to reduce the size of the binaries.
PR validation build:
- Embed PDBs to make it easier to debug crash dumps captured on the CI machine.
Developer build:
- Embed PDBs to be consistent with PR validation build.
-->
<DebugType>portable</DebugType>
<DebugType Condition="'$(OfficialBuild)' != 'true'">embedded</DebugType>
</PropertyGroup>
<!-- sourcelink settings -->
<PropertyGroup>
<!-- 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>
<!-- Build symbol package (.snupkg) to distribute the PDB containing Source Link -->
<!-- Produce snupkg in official builds (when not embedding PDBs to dlls) -->
<IncludeSymbols>false</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.SourceLink.GitHub" PrivateAssets="All"/>
</ItemGroup>
<!-- Nullable annotations for netstandard 2.0 -->
<ItemGroup>
<PackageReference Include="TunnelVisionLabs.ReferenceAssemblyAnnotator" PrivateAssets="all" />
<PackageDownload Include="Microsoft.NETCore.App.Ref" Version="[5.0.0]" />
</ItemGroup>
</Project>