Skip to content

Commit 45f6f8d

Browse files
committed
Add workaround to prevent Microsoft.VCLibs.Desktop inclusion on UAP
1 parent 12e1957 commit 45f6f8d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

MultiTarget/WinUI.Extra.props

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,12 @@
2929
<None PackagePath="lib/net7.0-windows10.0.18362" Include="$(MSBuildThisFileDirectory)/_._" Pack="true" />
3030
</ItemGroup>
3131

32+
<!-- Fixes an issue where the WebView2 reference causes Microsoft.VCLibs.Desktop to be pulled in on uap -->
33+
<PropertyGroup Condition="'$(IsUwp)' == 'true' OR '$(MultiTargetPlatformIdentifier)' != 'windows'">
34+
<WebView2UseWinRT>false</WebView2UseWinRT>
35+
<WebView2UseDispatchAdapter>false</WebView2UseDispatchAdapter>
36+
</PropertyGroup>
37+
3238
<PropertyGroup Condition="'$(IsUwp)' == 'true'">
3339
<Platforms>x86;x64;arm64</Platforms>
3440

0 commit comments

Comments
 (0)