Skip to content

When making a packaged WinUI3.0 app self contained is there a way to get rid of the dependency on Microsoft.VCLibs.140.00 & Microsoft.VCLibs.140.00.UWPDesktop packages #3524

Closed Answered by DarranRowe
koenvd asked this question in Q&A
Discussion options

You must be logged in to vote

Digging into the Windows App SDK build files, there is an interesting section there.

  <!-- By default, add CRT package dependencies for UAP apps.  Previously, this was done to satisfy
      CRT linkage for WinUI 3 binaries.  With Hybrid CRT, that's no longer needed, but we retain this behavior 
      to avoid breaking existing projects.  At deployment time, it's very likely that a target device will already
      have Microsoft.VCLibs and Microsoft.VCLibs.Desktop FWPs installed.  But apps can still opt out of referencing
      these FWPs by setting WinUISDKReferences='false'. -->
  <PropertyGroup Condition="'$(WinUISDKReferences)'=='' and '$(TargetPlatformIdentifier)'=='UAP'">
    <WinUI…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@koenvd
Comment options

Answer selected by koenvd
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants