Skip to content

Commit 0aed1b8

Browse files
ViktorHoferSimaTian
authored andcommitted
Don't include LICENSE.TXT in nuget packages (#115518)
Runtime nuget packages already define a PackageLicenseExpression=MIT There's no need to also bundle the LICENSE file into the packages as the nuspec correctly points to the license site.
1 parent 40d3661 commit 0aed1b8

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

Directory.Build.targets

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -84,11 +84,6 @@
8484

8585
<!-- Packaging -->
8686
<ItemGroup Condition="'$(IsPackable)' == 'true'">
87-
<!-- The sfxproj files add the license themselves. -->
88-
<None Include="$(LicenseFile)"
89-
PackagePath="$([System.IO.Path]::GetFileName('$(LicenseFile)'))"
90-
Pack="true"
91-
Condition="'$(MSBuildProjectExtension)' != '.sfxproj' and '$(MSBuildProjectFile)' != 'msi.csproj'" />
9287
<None Include="$(PackageThirdPartyNoticesFile)"
9388
PackagePath="$([System.IO.Path]::GetFileName('$(PackageThirdPartyNoticesFile)'))"
9489
Pack="true" />

0 commit comments

Comments
 (0)