Centralize packing .targets file in NuGet packages
このコミットが含まれているのは:
1 親
9b69568f4e
コミット
129268ffb6
5ファイル変更
+11
-17
検索条件に一致するファイルはありません
@@ -38,10 +38,6 @@
|
||||
<!-- Source generator reference -->
|
||||
<ProjectReference Condition="'$(TargetFramework)' == 'netstandard2.0'" Include="..\ComputeSharp.Core.SourceGenerators\ComputeSharp.Core.SourceGenerators.csproj" ReferenceOutputAssembly="false" />
|
||||
|
||||
<!-- Include the custom .targets file to check the source generator -->
|
||||
<None Include="ComputeSharp.Core.targets" PackagePath="buildTransitive" Pack="true" />
|
||||
<None Include="ComputeSharp.Core.targets" PackagePath="build" Pack="true" />
|
||||
|
||||
<!-- Pack the source generator in the NuGet package for the project -->
|
||||
<None Include="..\ComputeSharp.Core.SourceGenerators\bin\$(Configuration)\netstandard2.0\ComputeSharp.Core.SourceGenerators.dll" PackagePath="analyzers\dotnet\cs" Pack="true" Visible="false" />
|
||||
</ItemGroup>
|
||||
|
||||
@@ -38,10 +38,6 @@
|
||||
<!-- Source generator reference -->
|
||||
<ProjectReference Condition="'$(TargetFramework)' == 'netstandard2.0'" Include="..\ComputeSharp.D2D1.SourceGenerators\ComputeSharp.D2D1.SourceGenerators.csproj" ReferenceOutputAssembly="false" />
|
||||
|
||||
<!-- Include the custom .targets file to check the source generator -->
|
||||
<None Include="ComputeSharp.D2D1.targets" PackagePath="buildTransitive" Pack="true" />
|
||||
<None Include="ComputeSharp.D2D1.targets" PackagePath="build" Pack="true" />
|
||||
|
||||
<!-- Pack the source generator in the NuGet package for the project -->
|
||||
<None Include="..\ComputeSharp.D2D1.SourceGenerators\bin\$(Configuration)\netstandard2.0\ComputeSharp.D2D1.SourceGenerators.dll" PackagePath="analyzers\dotnet\cs" Pack="true" Visible="false" />
|
||||
</ItemGroup>
|
||||
|
||||
@@ -85,9 +85,5 @@
|
||||
|
||||
<!-- License file -->
|
||||
<None Include="LICENSE.txt" Pack="true" PackagePath="\" Visible="False" />
|
||||
|
||||
<!-- Include the custom .targets file to check the source generator -->
|
||||
<None Include="ComputeSharp.Pix.targets" PackagePath="buildTransitive" Pack="true" />
|
||||
<None Include="ComputeSharp.Pix.targets" PackagePath="build" Pack="true" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
@@ -47,10 +47,6 @@
|
||||
<!-- Source generator reference -->
|
||||
<ProjectReference Condition="'$(TargetFramework)' == 'netstandard2.0'" Include="..\ComputeSharp.SourceGenerators\ComputeSharp.SourceGenerators.csproj" ReferenceOutputAssembly="false" />
|
||||
|
||||
<!-- Include the custom .targets file to check the source generator -->
|
||||
<None Include="ComputeSharp.targets" PackagePath="buildTransitive" Pack="true" />
|
||||
<None Include="ComputeSharp.targets" PackagePath="build" Pack="true" />
|
||||
|
||||
<!-- Pack the source generator in the NuGet package for the project -->
|
||||
<None Include="..\ComputeSharp.SourceGenerators\bin\$(Configuration)\netstandard2.0\ComputeSharp.SourceGenerators.dll" PackagePath="analyzers\dotnet\cs" Pack="true" Visible="false" />
|
||||
</ItemGroup>
|
||||
|
||||
+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>
|
||||
|
||||
<!--
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする