You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Disable legacy VCLibs/UniversalCRT.Debug SDKReferences in Uno.Sdk WinAppSdk targets #23173
When building a Uno WinAppSdk target, Microsoft.WinUI.AppX.targets (from the WindowsAppSDK) injects legacy <SDKReference> items for Microsoft.VCLibs, Microsoft.VCLibs.Desktop, and Microsoft.UniversalCRT.Debug whenever WinUISDKReferences is true (or empty under UAP). These framework package references are no longer required (Hybrid CRT removes the runtime need) and they routinely cause build failures such as:
Could not find SDK "Microsoft.UniversalCRT.Debug, Version=10.0.26100.0".
on machines that don't have the matching Universal CRT Debug Extension SDK installed.
Proposal
Default WinUISDKReferences to false in Uno.Sdk for WinAppSdk targets so that Uno apps don't pull in these legacy SDK framework packages out of the box. Users can still opt back in by explicitly setting <WinUISDKReferences>true</WinUISDKReferences> in their project.
Reference
Microsoft.WinUI.AppX.targets (WindowsAppSDK) — the comment in that file explicitly calls out that "apps can still opt out of referencing these FWPs by setting WinUISDKReferences='false'".
Activity
fix: Disable legacy VCLibs/UniversalCRT.Debug SDKReferences for WinAp…