forked from dotnet/reproducible-builds
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Directory.Build.props
49 lines (42 loc) · 1.73 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
<Project>
<PropertyGroup>
<RepoRoot>$(MSBuildThisFileDirectory)</RepoRoot>
<!-- Default to not packaging a project. Override per-project where dotnet sdk nuget packaging
is desired. -->
<IsPackable Condition="'$(IsPackable)' == ''">false</IsPackable>
<!-- set up package output path -->
<PackageOutputPath Condition="'$(Build_ArtifactStagingDirectory)' != ''">
$(Build_ArtifactStagingDirectory)\packages\</PackageOutputPath>
<PackageOutputPath Condition="'$(PackageOutputPath)' == ''">$(MSBuildThisFileDirectory)packages\</PackageOutputPath>
<NerdbankPackageVersion>3.6.133</NerdbankPackageVersion>
<!-- Packaging properties -->
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageReadmeFile>README.md</PackageReadmeFile>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<EnableSourceLink>true</EnableSourceLink>
<Authors>.NET Foundation and Contributors</Authors>
<Copyright>© .NET Foundation</Copyright>
</PropertyGroup>
<ItemGroup>
<None
Include="$(MSBuildThisFileDirectory)/README.md"
Pack="true"
PackagePath="/" />
</ItemGroup>
<ItemGroup>
<PackageReference
Include="Nerdbank.GitVersioning"
Version="$(NerdbankPackageVersion)"
PrivateAssets="all" />
</ItemGroup>
<Target
Name="PreparePackageReleaseNotesFromFiles"
Condition="'$(IsPackable)' == 'true'"
BeforeTargets="GenerateNuspec">
<PropertyGroup>
<!-- This path will be relative to each executing project -->
<PackageReleaseNotesFile>CHANGELOG.md</PackageReleaseNotesFile>
<PackageReleaseNotes>$([System.IO.File]::ReadAllText($(PackageReleaseNotesFile)))</PackageReleaseNotes>
</PropertyGroup>
</Target>
</Project>