forked from microsoft/MSBuildCache
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Directory.Build.props
63 lines (51 loc) · 2.52 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
<Project>
<PropertyGroup>
<RepoRoot>$(MSBuildThisFileDirectory)</RepoRoot>
<Nullable>enable</Nullable>
<!-- Use the latest version of C# available -->
<LangVersion>Latest</LangVersion>
<!-- ArtifactsDirectory is an Azure Pipelines variable so presents as an env var -->
<BaseArtifactsPath Condition="'$(ArtifactsDirectory)' != ''">$(ArtifactsDirectory)\$(Configuration)\</BaseArtifactsPath>
<BaseArtifactsPath Condition="'$(BaseArtifactsPath)' == ''">$(MSBuildThisFileDirectory)artifacts\$(Configuration)\</BaseArtifactsPath>
<!-- Put all produced packages in the same folder -->
<PackageOutputPath>$(BaseArtifactsPath)\packages</PackageOutputPath>
<!-- Don't allow warnings -->
<MSBuildTreatWarningsAsErrors>true</MSBuildTreatWarningsAsErrors>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<!-- Enabled the built-in analyzers -->
<EnableNETAnalyzers>true</EnableNETAnalyzers>
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
<AnalysisMode>All</AnalysisMode>
<!-- Embed symbols for easier debugging -->
<DebugType>embedded</DebugType>
<!-- Required for IDE0005 -->
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<!-- Use Directory.Packages.props to manage versions -->
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
<CentralPackageTransitivePinningEnabled>true</CentralPackageTransitivePinningEnabled>
<!-- BuildXL packages are pre-release but this package itself is not pre-release -->
<NoWarn>$(NoWarn);NU5104</NoWarn>
</PropertyGroup>
<!-- Packaging -->
<PropertyGroup>
<Authors>Microsoft</Authors>
<Company>Microsoft</Company>
<Copyright>© Microsoft Corporation. All rights reserved.</Copyright>
<Description>A project cache plugin for MSBuild</Description>
<PackageLicenseFile>LICENSE</PackageLicenseFile>
<PackageLicensePath>$(MSBuildThisFileDirectory)$(PackageLicenseFile)</PackageLicensePath>
<PackageProjectUrl>https://github.com/microsoft/MSBuildCache</PackageProjectUrl>
<RepositoryUrl>https://github.com/microsoft/MSBuildCache</RepositoryUrl>
</PropertyGroup>
<ItemGroup Condition="'$(IsPackable)' == 'true'">
<None Include="$(PackageLicensePath)"
Pack="true"
PackagePath="."
Visible="false" />
</ItemGroup>
<!-- Source Link (https://github.com/dotnet/sourcelink) -->
<PropertyGroup>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<EmbedUntrackedSources>true</EmbedUntrackedSources>
</PropertyGroup>
</Project>