Skip to content

Commit bcaaabe

Browse files
committed
fix: Try to use #219 PR
1 parent 27507ca commit bcaaabe

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/libs/Directory.Build.targets

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,15 @@
3434
<Compile Remove="$(MSBuildThisFileDirectory)**\*.Maui.*" />
3535
<Compile Remove="$(MSBuildThisFileDirectory)**\Maui\*.*" />
3636
</ItemGroup>
37+
38+
<!-- Workaround for https://github.com/dotnet/wpf/issues/11246 -->
39+
<Target Name="FixWpfReferences" AfterTargets="ResolveTargetingPackAssets" Condition="'$(UseWPF)' == 'true'">
40+
<ItemGroup>
41+
<SystemPrivateWindowsCoreRef Include="@(Reference)" Condition="'%(Filename)' == 'System.Private.Windows.Core'" />
42+
<ReferencePath Include="@(SystemPrivateWindowsCoreRef->'%(RootDir)%(Directory)System.Private.Windows.GdiPlus.dll')">
43+
<AssemblyName>System.Private.Windows.GdiPlus</AssemblyName>
44+
</ReferencePath>
45+
</ItemGroup>
46+
</Target>
3747

3848
</Project>

0 commit comments

Comments
 (0)