Skip to content

Commit

Permalink
Add workaround to prevent Microsoft.VCLibs.Desktop inclusion on UAP
Browse files Browse the repository at this point in the history
  • Loading branch information
Arlodotexe committed Dec 18, 2024
1 parent 12e1957 commit 45f6f8d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions MultiTarget/WinUI.Extra.props
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@
<None PackagePath="lib/net7.0-windows10.0.18362" Include="$(MSBuildThisFileDirectory)/_._" Pack="true" />
</ItemGroup>

<!-- Fixes an issue where the WebView2 reference causes Microsoft.VCLibs.Desktop to be pulled in on uap -->
<PropertyGroup Condition="'$(IsUwp)' == 'true' OR '$(MultiTargetPlatformIdentifier)' != 'windows'">
<WebView2UseWinRT>false</WebView2UseWinRT>
<WebView2UseDispatchAdapter>false</WebView2UseDispatchAdapter>
</PropertyGroup>

<PropertyGroup Condition="'$(IsUwp)' == 'true'">
<Platforms>x86;x64;arm64</Platforms>

Expand Down

0 comments on commit 45f6f8d

Please sign in to comment.