Skip to content

Commit 7c3a552

Browse files
committed
Workaround for Segmented layout files being included in ColorPicker
See #241 (comment)
1 parent f4660e3 commit 7c3a552

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

components/ColorPicker/src/CommunityToolkit.WinUI.Controls.ColorPicker.csproj

+6
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,10 @@
2323
<PropertyGroup>
2424
<PackageId>$(PackageIdPrefix).$(PackageIdVariant).Controls.$(ToolkitComponentName)</PackageId>
2525
</PropertyGroup>
26+
27+
<Target Name="BeforeGenerateProjectPriFile">
28+
<ItemGroup>
29+
<_LayoutFile Remove="@(_LayoutFile)" Condition="$([System.String]::Copy(&quot;%(_LayoutFile.TargetPath)&quot;).StartsWith('CommunityToolkit.WinUI.Controls.Segmented\'))" />
30+
</ItemGroup>
31+
</Target>
2632
</Project>

0 commit comments

Comments
 (0)