Repository navigation
Description
Current behavior 🐛
A new Uno app created with dotnet new unoapp and moved to the 7.0 dev Uno.Sdk fails to build its WinAppSDK head (net10.0-windows10.0.26100):
CSC : error CS1705: Assembly 'Uno.UI.Extras' with identity 'Uno.UI.Extras, Version=255.255.255.255, ...'
uses 'WinRT.Runtime, Version=2.3.1.0, ...' which has a higher version than referenced assembly
'WinRT.Runtime' with identity 'WinRT.Runtime, Version=2.2.0.0, ...'
It is preceded by a wall of MSB3277 conflict warnings on WinRT.Runtime.
The Uno.WinUI assemblies in lib/net10.0-windows10.0.19041.0 are compiled against the Microsoft.Windows.SDK.NET.Ref 10.0.26100.87 projection (WinRT.Runtime 2.3.1). The .NET SDK 10.0.401 gives the app Microsoft.Windows.SDK.NET.Ref 10.0.26100.57 by default (WinRT.Runtime 2.2.0), and Uno.Sdk does not raise WindowsSdkPackageVersion, so the app compiles against the older runtime.
Expected behavior 🎯
A fresh app builds its Windows head out of the box, without hand-setting WindowsSdkPackageVersion.
How to reproduce it (as minimally and precisely as possible) 🔬
- Install the .NET SDK 10.0.401 and the
Uno.Templatespack (6.7.30 was used). dotnet new unoapp -n Repro -preset blank -platforms windows -platforms desktop- In
global.json, change the SDK to the dev build:"Uno.Sdk": "7.0.0-dev.32". dotnet build Repro/Repro.csproj -f net10.0-windows10.0.26100 -c Release- The build fails with CS1705 as above.
- Add
-p:WindowsSdkPackageVersion=10.0.26100.87to the same command:Build succeeded.
(Release is used because the Debug build of the same app stops earlier on an unrelated hot design target error.)
Workaround 🛠️
Set the projection package version in the app, either on the command line or in the csproj:
<PropertyGroup>
<WindowsSdkPackageVersion>10.0.26100.87</WindowsSdkPackageVersion>
</PropertyGroup>Works on UWP/WinUI 🪟
No
Renderer 🎨
N/A (Windows / WinAppSDK head)
Affected platforms 📱💻🖥️
WinAppSDK (net10.0-windows10.0.26100)
Uno.Sdk version (and other relevant versions) 📦
Uno.Sdk 7.0.0-dev.32, .NET SDK 10.0.401, checked against master commit 1fd0494 (nothing in src/Uno.Sdk sets WindowsSdkPackageVersion there).
IDE version 🛠️
Command line (dotnet build)
Anything else we need to know? 💬
Uno.Sdkalready has a WinAppSDK-specific targets file where a default could live, for example next toWindowsAppSDKSelfContainedinUno.SingleProject.WinAppSdk.targets. Something like<WindowsSdkPackageVersion Condition="'$(WindowsSdkPackageVersion)' == ''">10.0.26100.87</WindowsSdkPackageVersion>would do, but the exact value must follow whatever version Uno.WinUI is compiled against, and the pin should not lower a version a newer SDK band already picks.- Whether newer .NET SDK bands default to 10.0.26100.87 was not checked.
- The same conflict (worked around with
10.0.19041.87) was noticed in passing in GenerateLibraryLayout puts content in a second lib folder for 4-part Windows TFMs (net10.0-windows10.0.19041.0) #24873 while building a class library, so libraries are likely affected too.
Activity
khaskoul commentedon Oct 25, 2026
Update from automated QA of the Uno SDK. This still reproduces on a fresh template app on Uno.Sdk 7.0.0-dev.89, but the failing assembly has changed.
net10.0-windows10.0.26100-c Debug(template default)Uno.UI.HotDesign.Client, then WMC9999-c Debug -p:WindowsSdkPackageVersion=10.0.26100.87(the workaround above)-c Release, no workaround-c DebugSo the Uno.WinUI assemblies (
Uno.UI.Extrasin the original report) no longer trip it in Release. What remains is the Hot Design client: it's compiled againstWinRT.Runtime2.3.1 and referenced only in Debug. That's the configuration a new user builds first.Two side notes:
Uno.UI.HotDesign.Client2.0.0-dev.12._UnoAddLibraryAssetserror from Debug build of the WinAppSDK head fails with MSB4057: target "_UnoAddLibraryAssets" does not exist (Uno.UI.HotDesign.props) #24983 and stops here instead.Not tried: launching the app.
fix(sdk): Use the WinRT.Runtime 2.3 projection on Windows targets
fix(sdk): Use the WinRT.Runtime 2.3 projection on Windows targets
fix(sdk): Use the WinRT.Runtime 2.3 projection on Windows targets
fix(build): Pin the 19041 Windows SDK projection
khaskoul commentedon Nov 8, 2026
Confirmed fixed on Uno.Sdk 7.0.0-dev.179 (after #25836)
A fresh template app now builds its WinAppSDK head out of the box, without setting
WindowsSdkPackageVersion:net10.0-windows10.0.26100,-c Debug, noWindowsSdkPackageVersionUno.UI.HotDesign.Client(WinRT.Runtime2.3.1 vs 2.2.0), then WMC9999WinRT.Runtime, 4 of 4 runsWindows 11 Pro (26200), .NET SDK 10.0.401, Uno.Sdk / Uno.Templates 7.0.0-dev.179.