Centralize packing license files in NuGet packages

このコミットが含まれているのは:
Sergio Pedri committed 2023-04-22 12:19:45 +02:00
1 親 cf478e4421
コミット bad69bb5f8
3ファイル変更
+14 -9

検索条件に一致するファイルはありません

-7
ファイルの表示
@@ -79,11 +79,4 @@
-->
<NoWarn>$(NoWarn);NU5100</NoWarn>
</PropertyGroup>
<!-- NuGet package setup -->
<ItemGroup Label="Package">
<!-- License file -->
<None Include="LICENSE.txt" Pack="true" PackagePath="\" Visible="False" />
</ItemGroup>
</Project>
+7
ファイルの表示
@@ -14,6 +14,10 @@
<!-- Check whether the project has a .targets file to bundle -->
<IsTargetsFileAvailableForPacking>false</IsTargetsFileAvailableForPacking>
<IsTargetsFileAvailableForPacking Condition="$(IsPackagedProject) AND Exists('$(MSBuildProjectName).targets')">true</IsTargetsFileAvailableForPacking>
<!-- Same check for an optional LICENSE.txt file to bundle -->
<IsLicenseFileAvailableForPacking>false</IsLicenseFileAvailableForPacking>
<IsLicenseFileAvailableForPacking Condition="$(IsPackagedProject) AND Exists('LICENSE.txt')">true</IsLicenseFileAvailableForPacking>
</PropertyGroup>
<!-- Additional items for published projects -->
@@ -25,6 +29,9 @@
<!-- Pack .targets files, if present -->
<None Condition="$(IsTargetsFileAvailableForPacking)" Include="$(MSBuildProjectName).targets" PackagePath="buildTransitive" Pack="true" />
<None Condition="$(IsTargetsFileAvailableForPacking)" Include="$(MSBuildProjectName).targets" PackagePath="build" Pack="true" />
<!-- Pack the license file, if present -->
<None Condition="$(IsLicenseFileAvailableForPacking)" Include="LICENSE.txt" Pack="true" PackagePath="\" Visible="False" />
</ItemGroup>
<!--
+7 -2
ファイルの表示
@@ -13,10 +13,15 @@
<ItemGroup Condition="'$(IsSourceGeneratorAvailableForPacking)' == 'true'" Label="Package">
<!-- Source generator reference (to trigger building the generator) -->
<ProjectReference Condition="'$(TargetFramework)' == '$(SourceGeneratorReferenceTargetFramework)'" Include="..\$(MSBuildProjectName).SourceGenerators\$(MSBuildProjectName).SourceGenerators.csproj" ReferenceOutputAssembly="false" />
<ProjectReference Condition="'$(TargetFramework)' == '$(SourceGeneratorReferenceTargetFramework)'"
Include="..\$(MSBuildProjectName).SourceGenerators\$(MSBuildProjectName).SourceGenerators.csproj"
ReferenceOutputAssembly="false" />
<!-- Pack the source generator from its output directory -->
<None Include="..\$(MSBuildProjectName).SourceGenerators\bin\$(Configuration)\$(SourceGeneratorReferenceTargetFramework)\$(MSBuildProjectName).SourceGenerators.dll" PackagePath="analyzers\dotnet\cs" Pack="true" Visible="false" />
<None Include="..\$(MSBuildProjectName).SourceGenerators\bin\$(Configuration)\$(SourceGeneratorReferenceTargetFramework)\$(MSBuildProjectName).SourceGenerators.dll"
PackagePath="analyzers\dotnet\cs"
Pack="true"
Visible="false" />
</ItemGroup>
<!--