Skip to content

Commit 5a89531

Browse files
committed
Fix filenames for packaged .targets files
1 parent 65fdb63 commit 5a89531

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

components/DependencyPropertyGenerator/src/CommunityToolkit.WinUI.DependencyPropertyGenerator.csproj

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,12 @@
4343
<!-- Pack the source generator and the .targets file -->
4444
<ItemGroup Label="Package">
4545

46-
<!-- Include the custom .targets file to check the source generator -->
47-
<None Include="CommunityToolkit.WinUI.DependencyPropertyGenerator.targets" PackagePath="buildTransitive" Pack="true" />
48-
<None Include="CommunityToolkit.WinUI.DependencyPropertyGenerator.targets" PackagePath="build" Pack="true" />
46+
<!--
47+
Include the custom .targets file to check the source generator. We need to ensure its name always matches the package name,
48+
which will be different for UWP and other targets, because that is required by NuGet to enable the auto-importing feature.
49+
-->
50+
<None Include="CommunityToolkit.WinUI.DependencyPropertyGenerator.targets" PackagePath="buildTransitive\$(PackageId).targets" Pack="true" />
51+
<None Include="CommunityToolkit.WinUI.DependencyPropertyGenerator.targets" PackagePath="build\$(PackageId).targets" Pack="true" />
4952

5053
<!-- Pack the source generators to the right package folder -->
5154
<None Include="..\CommunityToolkit.DependencyPropertyGenerator.SourceGenerators\bin\$(Configuration)\netstandard2.0\CommunityToolkit.DependencyPropertyGenerator.SourceGenerators.dll" PackagePath="analyzers\dotnet\roslyn4.12\cs" Pack="true" Visible="false" />

0 commit comments

Comments
 (0)