Centralize packing .targets file in NuGet packages
このコミットが含まれているのは:
1 親
9b69568f4e
コミット
129268ffb6
5ファイル変更
+11
-17
検索条件に一致するファイルはありません
+11
-1
@@ -10,11 +10,21 @@
|
||||
|
||||
<!-- Disable packing symbols for source generators -->
|
||||
<PackSymbols Condition="$(IsSourceGeneratorProject)">false</PackSymbols>
|
||||
|
||||
<!-- Check whether the project has a .targets file to bundle -->
|
||||
<IsTargetsFileAvailableForPacking>false</IsTargetsFileAvailableForPacking>
|
||||
<IsTargetsFileAvailableForPacking Condition="$(IsPackagedProject) AND Exists('$(MSBuildProjectName).targets')">true</IsTargetsFileAvailableForPacking>
|
||||
</PropertyGroup>
|
||||
|
||||
<!-- Additional items for published projects -->
|
||||
<ItemGroup>
|
||||
<ItemGroup Label="Package">
|
||||
|
||||
<!-- Pack the NuGet icon file -->
|
||||
<None Condition="$(IsPackagedProject)" Include="$(MSBuildThisFileDirectory)..\assets\icon.png" Pack="true" PackagePath="\" Visible="False" />
|
||||
|
||||
<!-- 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" />
|
||||
</ItemGroup>
|
||||
|
||||
<!--
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする