Repository navigation
fix: Disable legacy VCLibs/UniversalCRT.Debug SDKReferences in Uno.Sdk WinAppSdk targets - #23174
Merged
Merged
Conversation
…pSdk Default WinUISDKReferences to false so WindowsAppSDK's Microsoft.WinUI.AppX.targets does not inject Microsoft.VCLibs, Microsoft.VCLibs.Desktop, and Microsoft.UniversalCRT.Debug SDK framework package references, which are no longer needed (Hybrid CRT) and frequently cause "Could not find SDK" build failures. Users can still opt back in by setting the property to true. fixes #23173 Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
MartinZikmund
enabled auto-merge
May 1, 2026 08:01
MartinZikmund
requested review from
Xiaoy312,
ajpinedam,
morning4coffe-dev and
ramezgerges
May 1, 2026 08:02
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates Uno.Sdk’s WinAppSDK build targets to explicitly disable legacy SDK framework package references injected by Windows App SDK when WinUISDKReferences is left unset, preventing build failures on machines missing those legacy Extension SDKs.
Changes:
- Default
WinUISDKReferencestofalse(only when not already set) for WinAppSDK targets. - Add an inline comment explaining the rationale (opting out of legacy VCLibs/UniversalCRT.Debug SDK references).
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Contributor
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-23174/wasm-skia-net9/index.html |
Xiaoy312
approved these changes
May 5, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
GitHub Issue: closes #23173
PR Type:
🐞 Bugfix
What changed? 🚀
Defaults
WinUISDKReferencestofalseinsrc/Uno.Sdk/targets/Uno.Common.WinAppSdk.targets, alongside the other WinAppSdk-wide defaults.Microsoft.WinUI.AppX.targets(shipped with the Windows App SDK) injects legacy<SDKReference>items forMicrosoft.VCLibs,Microsoft.VCLibs.Desktop, andMicrosoft.UniversalCRT.DebugwheneverWinUISDKReferencesis not explicitly disabled. With Hybrid CRT, these framework package references are no longer required, and they frequently cause build failures such as:on machines that don't have the matching Universal CRT Debug Extension SDK installed.
The new property is gated with
Condition=\" '\$(WinUISDKReferences)' == '' \"so consumers who still need the legacy SDK references can opt back in by setting<WinUISDKReferences>true</WinUISDKReferences>in their project.The comment in
Microsoft.WinUI.AppX.targetsitself explicitly documents this opt-out:PR Checklist ✅
Screenshots Compare Test Runresults.