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:
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>