-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathDirectory.Build.targets
48 lines (40 loc) · 2 KB
/
Directory.Build.targets
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
<?xml version="1.0" encoding="utf-8"?>
<Project>
<ItemGroup Label="NuGet">
<!-- solution-level icon/README -->
<None Include="..\images\icon.png" Pack="true" PackagePath="properties" Link="properties\icon.png"
Condition="Exists('..\images\icon.png') and !Exists('icon.png')"
/>
<None Include="..\README.md" Pack="true" PackagePath="properties" Link="properties\README.md"
Condition="Exists('..\README.md') and !Exists('README.md')"
/>
<!-- Project-level icon/README overrides -->
<None Include="icon.png" Pack="true" PackagePath="properties" Link="properties\icon.png"
Condition="Exists('icon.png')"
/>
<None Include="README.md" Pack="true" PackagePath="properties" Link="properties\README.md"
Condition="Exists('README.md')"
/>
<!--$(MSBuildThisFileDirectory)file, $(MSBuildProjectDirectory)\file-->
</ItemGroup>
<Sdk Name="Microsoft.Build.CentralPackageVersions" Version="2.1.3" />
<Target Name="_AppendCommonPackageDescription"
BeforeTargets="InitializeStandardNuspecProperties;GenerateNuspec"
DependsOnTargets="InitializeSourceControlInformation"
Condition="'$(IsPackable)' == 'true'">
<PropertyGroup>
<!--Append source information to PackageDescription.-->
<PackageDescription>
$(PackageDescription)
This package was built from the source at $(RepositoryUrl.TrimEnd('.git'))/tree/$(SourceRevisionId)
</PackageDescription>
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
<IncludeSourceRevisionInInformationalVersion>true</IncludeSourceRevisionInInformationalVersion>
<EnablePackageValidation>true</EnablePackageValidation>
<!-- Optional: Detect breaking changes from a previous version -->
<!-- <PackageValidationBaselineVersion>1.0.0</PackageValidationBaselineVersion> -->
<PackageIcon>properties\icon.png</PackageIcon>
<PackageReadmeFile>properties\README.md</PackageReadmeFile>
</PropertyGroup>
</Target>
</Project>