Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/dotnet/runtime.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorViktor Hofer <viktor.hofer@microsoft.com>2020-12-25 05:02:42 +0300
committerGitHub <noreply@github.com>2020-12-25 05:02:42 +0300
commit4834579356655bd51b243f55c2ed2ead216a616a (patch)
tree4543ab670fe0c64674b17a64a9fa3298e02db136 /Directory.Build.targets
parent007f6b9d8eaca50f70261928d74651fda40387a7 (diff)
Consolidate packaging properties (#46331)
* Consolidate packaging properties * Remove versions.txt file from packages The versions.txt file was added to packages to know which SHA a package was built against. As the nuspec now contains the SHA, the versions file isn't necessary anymore.
Diffstat (limited to 'Directory.Build.targets')
-rw-r--r--Directory.Build.targets11
1 files changed, 11 insertions, 0 deletions
diff --git a/Directory.Build.targets b/Directory.Build.targets
index 6b1d21054a2..e8bb87918af 100644
--- a/Directory.Build.targets
+++ b/Directory.Build.targets
@@ -22,6 +22,17 @@
</PropertyGroup>
<!-- Packaging -->
+ <ItemGroup Condition="'$(IsPackable)' == 'true'">
+ <!-- The sfxproj files add the license themselves. -->
+ <None Include="$(LicenseFile)"
+ PackagePath="$([System.IO.Path]::GetFileName('$(LicenseFile)'))"
+ Pack="true"
+ Condition="'$(MSBuildProjectExtension)' != '.sfxproj'" />
+ <None Include="$(PackageThirdPartyNoticesFile)"
+ PackagePath="$([System.IO.Path]::GetFileName('$(PackageThirdPartyNoticesFile)'))"
+ Pack="true" />
+ </ItemGroup>
+
<PropertyGroup>
<PackageDescription Condition="'$(PackageDescription)' == '' and '$(Description)' != ''">$(Description)</PackageDescription>
<RuntimePackageDisclaimer>Internal implementation package not meant for direct consumption. Please do not reference directly.</RuntimePackageDisclaimer>