Skip to content

Disable legacy VCLibs/UniversalCRT.Debug SDKReferences in Uno.Sdk WinAppSdk targets #23173

Closed

Description

@MartinZikmund

Summary

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

  1. added a commit that references this issue on May 5, 2026
    3e68a2b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions