Repository navigation
refactor!: Make the Uno.Sdk the only supported app project format - #24185
Conversation
|
Claude finished @MartinZikmund's task in 9m 6s —— View job PR Review: refactor! Make the Uno.Sdk the only supported app project formatTasks:
Overall verdict: ship (2 minor findings, 0 blockers)This is a well-scoped, well-documented breaking change. The deletions are thorough (no stale imports of removed files remain), the two new diagnostics are correctly conditioned, and the Findings (2 total — 0 blocking, 2 minor)1 — Dead code in test script ( 2 — Case-sensitive Cross-cutting notes
|
There was a problem hiding this comment.
Pull request overview
This breaking-change PR makes Uno.Sdk the only supported application project format, removes legacy project and template support, and adds migration diagnostics.
Changes:
- Removes legacy single-project, UWP, and multi-head template support.
- Adds UNOB0021 and UNOB0022 diagnostics and migration documentation.
- Restores mobile sample item handling after removing the legacy target import.
A critical issue remains: UNOB0021 can incorrectly reject Windows App SDK WinExe projects because the validation lacks a WinAppSDK exclusion.
Reviewed changes
Copilot reviewed 126 out of 193 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Summary |
|---|---|
src/Uno.Sdk/UnoTarget.cs |
Removes the legacy framebuffer target constant. |
src/Uno.Sdk/Tasks/ImplicitPackagesResolver.cs |
Removes project-name/runtime sniffing. |
src/Uno.Sdk/targets/Uno.ProjectCapabilities.WinAppSdk.targets |
Updates WinAppSDK capability handling. |
src/Uno.Sdk/targets/Uno.ProjectCapabilities.targets |
Updates project capability handling. |
src/Uno.Sdk/targets/Uno.Implicit.Packages.targets |
Updates implicit package handling. |
src/Uno.Sdk/targets/Uno.Implicit.Packages.ProjectSystem.targets |
Updates project-system package handling. |
src/Uno.Sdk/targets/Uno.Implicit.Packages.ProjectSystem.Legacy.targets |
Removes legacy project-system handling. |
src/Uno.Sdk/targets/Uno.Extensions.Implicit.Packages.ProjectSystem.targets |
Updates extension project-system integration. |
src/Uno.Sdk/targets/Uno.DefaultItems.targets |
Updates default item handling. |
src/Uno.Sdk/targets/Uno.DefaultItems.Resizetizer.targets |
Updates Resizetizer default items. |
src/Uno.Sdk/targets/Uno.Common.WinAppSdk.targets |
Updates WinAppSDK common targets. |
src/Uno.Sdk/targets/Uno.Common.Wasm.targets |
Updates WASM common targets. |
src/Uno.Sdk/targets/Uno.Common.targets |
Uses UnoSingleProject exclusively. |
src/Uno.Sdk/targets/Uno.Common.iOS.targets |
Updates iOS common targets. |
src/Uno.Sdk/targets/Uno.Common.Android.targets |
Updates Android common targets. |
src/Uno.Sdk/targets/Uno.Build.targets |
Adds UNOB0022 validation. |
src/Uno.Sdk/Sdk/Sdk.props |
Updates SDK identification and behavior. |
src/SolutionTemplate/UnoAppWinUILinuxValidation/UnoAppWinUILinuxValidation/UnoAppWinUILinuxValidation.csproj |
Removes legacy template fixture. |
src/SolutionTemplate/UnoAppWinUILinuxValidation/UnoAppWinUILinuxValidation/Strings/en/Resources.resw |
Removes legacy template fixture. |
src/SolutionTemplate/UnoAppWinUILinuxValidation/UnoAppWinUILinuxValidation/MainPage.xaml.cs |
Removes legacy template fixture. |
src/SolutionTemplate/UnoAppWinUILinuxValidation/UnoAppWinUILinuxValidation/MainPage.xaml |
Removes legacy template fixture. |
src/SolutionTemplate/UnoAppWinUILinuxValidation/UnoAppWinUILinuxValidation/AppResources.xaml |
Removes legacy template fixture. |
src/SolutionTemplate/UnoAppWinUILinuxValidation/UnoAppWinUILinuxValidation/App.cs |
Removes legacy template fixture. |
src/SolutionTemplate/UnoAppWinUILinuxValidation/UnoAppWinUILinuxValidation.Windows/UnoAppWinUILinuxValidation.Windows.csproj |
Removes legacy template fixture. |
src/SolutionTemplate/UnoAppWinUILinuxValidation/UnoAppWinUILinuxValidation.Windows/Properties/PublishProfiles/win-x86.pubxml |
Removes legacy template fixture. |
src/SolutionTemplate/UnoAppWinUILinuxValidation/UnoAppWinUILinuxValidation.Windows/Properties/PublishProfiles/win-x64.pubxml |
Removes legacy template fixture. |
src/SolutionTemplate/UnoAppWinUILinuxValidation/UnoAppWinUILinuxValidation.Windows/Properties/PublishProfiles/win-arm64.pubxml |
Removes legacy template fixture. |
src/SolutionTemplate/UnoAppWinUILinuxValidation/UnoAppWinUILinuxValidation.Windows/Properties/launchSettings.json |
Removes legacy template fixture. |
src/SolutionTemplate/UnoAppWinUILinuxValidation/UnoAppWinUILinuxValidation.Windows/Package.appxmanifest |
Removes legacy template fixture. |
src/SolutionTemplate/UnoAppWinUILinuxValidation/UnoAppWinUILinuxValidation.Windows/app.manifest |
Removes legacy template fixture. |
src/SolutionTemplate/UnoAppWinUILinuxValidation/UnoAppWinUILinuxValidation.Skia.Linux.FrameBuffer/UnoAppWinUILinuxValidation.Skia.Linux.FrameBuffer.csproj |
Removes legacy template fixture. |
src/SolutionTemplate/UnoAppWinUILinuxValidation/UnoAppWinUILinuxValidation.Skia.Linux.FrameBuffer/Program.cs |
Removes legacy template fixture. |
src/SolutionTemplate/UnoAppWinUILinuxValidation/UnoAppWinUILinuxValidation.Base/base.props |
Removes legacy template fixture. |
src/SolutionTemplate/UnoAppWinUILinuxValidation/UnoAppWinUILinuxValidation.Base/AppHead.xaml.cs |
Removes legacy template fixture. |
src/SolutionTemplate/UnoAppWinUILinuxValidation/UnoAppWinUILinuxValidation.Base/AppHead.xaml |
Removes legacy template fixture. |
src/SolutionTemplate/UnoAppWinUILinuxValidation/UnoAppWinUILinuxValidation-vsmac.slnf |
Removes legacy template fixture metadata. |
src/SolutionTemplate/UnoAppWinUILinuxValidation/.vsconfig |
Removes legacy template fixture metadata. |
src/SolutionTemplate/UnoAppWinUI/UnoAppWinUI/UnoAppWinUI.csproj |
Removes legacy template fixture. |
src/SolutionTemplate/UnoAppWinUI/UnoAppWinUI/Strings/en/Resources.resw |
Removes legacy template fixture. |
src/SolutionTemplate/UnoAppWinUI/UnoAppWinUI/MainPage.xaml.cs |
Removes legacy template fixture. |
src/SolutionTemplate/UnoAppWinUI/UnoAppWinUI/MainPage.xaml |
Removes legacy template fixture. |
src/SolutionTemplate/UnoAppWinUI/UnoAppWinUI/AppResources.xaml |
Removes legacy template fixture. |
src/SolutionTemplate/UnoAppWinUI/UnoAppWinUI/App.cs |
Removes legacy template fixture. |
src/SolutionTemplate/UnoAppWinUI/UnoAppWinUI.Windows/UnoAppWinUI.Windows.csproj |
Removes legacy template fixture. |
src/SolutionTemplate/UnoAppWinUI/UnoAppWinUI.Windows/Properties/PublishProfiles/win-x86.pubxml |
Removes legacy template fixture. |
src/SolutionTemplate/UnoAppWinUI/UnoAppWinUI.Windows/Properties/PublishProfiles/win-x64.pubxml |
Removes legacy template fixture. |
src/SolutionTemplate/UnoAppWinUI/UnoAppWinUI.Windows/Properties/PublishProfiles/win-arm64.pubxml |
Removes legacy template fixture. |
src/SolutionTemplate/UnoAppWinUI/UnoAppWinUI.Windows/Properties/launchSettings.json |
Removes legacy template fixture. |
src/SolutionTemplate/UnoAppWinUI/UnoAppWinUI.Windows/Package.appxmanifest |
Removes legacy template fixture. |
src/SolutionTemplate/UnoAppWinUI/UnoAppWinUI.Windows/app.manifest |
Removes legacy template fixture. |
src/SolutionTemplate/UnoAppWinUI/UnoAppWinUI.Skia.Linux.FrameBuffer/UnoAppWinUI.Skia.Linux.FrameBuffer.csproj |
Removes legacy template fixture. |
src/SolutionTemplate/UnoAppWinUI/UnoAppWinUI.Skia.Linux.FrameBuffer/Program.cs |
Removes legacy template fixture. |
src/SolutionTemplate/UnoAppWinUI/UnoAppWinUI.Skia.Gtk/UnoAppWinUI.Skia.Gtk.csproj |
Removes legacy template fixture. |
src/SolutionTemplate/UnoAppWinUI/UnoAppWinUI.Mobile/UnoAppWinUI.Mobile.csproj |
Removes legacy template fixture. |
src/SolutionTemplate/UnoAppWinUI/UnoAppWinUI.Mobile/iOS/Media.xcassets/LaunchImages.launchimage/Contents.json |
Removes legacy template fixture. |
src/SolutionTemplate/UnoAppWinUI/UnoAppWinUI.Mobile/iOS/Media.xcassets/AppIcons.appiconset/Contents.json |
Removes legacy template fixture. |
src/SolutionTemplate/UnoAppWinUI/UnoAppWinUI.Mobile/iOS/Main.iOS.cs |
Removes legacy template fixture. |
src/SolutionTemplate/UnoAppWinUI/UnoAppWinUI.Mobile/iOS/LaunchScreen.storyboard |
Removes legacy template fixture. |
src/SolutionTemplate/UnoAppWinUI/UnoAppWinUI.Mobile/iOS/Info.plist |
Removes legacy template fixture. |
src/SolutionTemplate/UnoAppWinUI/UnoAppWinUI.Mobile/iOS/Entitlements.plist |
Removes legacy template fixture. |
src/SolutionTemplate/UnoAppWinUI/UnoAppWinUI.Mobile/Android/Resources/values/Styles.xml |
Removes legacy template fixture. |
src/SolutionTemplate/UnoAppWinUI/UnoAppWinUI.Mobile/Android/Resources/values/Strings.xml |
Removes legacy template fixture. |
src/SolutionTemplate/UnoAppWinUI/UnoAppWinUI.Mobile/Android/Resources/AboutResources.txt |
Removes legacy template fixture. |
src/SolutionTemplate/UnoAppWinUI/UnoAppWinUI.Mobile/Android/MainActivity.Android.cs |
Removes legacy template fixture. |
src/SolutionTemplate/UnoAppWinUI/UnoAppWinUI.Mobile/Android/Main.Android.cs |
Removes legacy template fixture. |
src/SolutionTemplate/UnoAppWinUI/UnoAppWinUI.Mobile/Android/environment.conf |
Removes legacy template fixture. |
src/SolutionTemplate/UnoAppWinUI/UnoAppWinUI.Mobile/Android/Assets/AboutAssets.txt |
Removes legacy template fixture. |
src/SolutionTemplate/UnoAppWinUI/UnoAppWinUI.Mobile/Android/AndroidManifest.xml |
Removes legacy template fixture. |
src/SolutionTemplate/UnoAppWinUI/UnoAppWinUI.Base/base.props |
Removes legacy template fixture. |
src/SolutionTemplate/UnoAppWinUI/UnoAppWinUI.Base/AppHead.xaml.cs |
Removes legacy template fixture. |
src/SolutionTemplate/UnoAppWinUI/UnoAppWinUI.Base/AppHead.xaml |
Removes legacy template fixture. |
src/SolutionTemplate/UnoAppWinUI/UnoAppWinUI-vsmac.slnf |
Removes legacy template fixture metadata. |
src/SolutionTemplate/UnoAppWinUI/.vsconfig |
Removes legacy template fixture metadata. |
src/SolutionTemplate/MyAppXamlTrim/UnoSolutionTemplate.netcore.csproj |
Removes obsolete template fixture. |
src/SolutionTemplate/MyAppXamlTrim/MyAppXamlTrim.Wasm/wwwroot/web.config |
Removes obsolete template fixture. |
src/SolutionTemplate/MyAppXamlTrim/MyAppXamlTrim.Wasm/WasmScripts/AppManifest.js |
Removes obsolete template fixture. |
src/SolutionTemplate/MyAppXamlTrim/MyAppXamlTrim.Wasm/WasmCSS/Fonts.css |
Removes obsolete template fixture. |
src/SolutionTemplate/MyAppXamlTrim/MyAppXamlTrim.Wasm/Program.cs |
Removes obsolete template fixture. |
src/SolutionTemplate/MyAppXamlTrim/MyAppXamlTrim.Wasm/MyAppXamlTrim.Wasm.csproj |
Removes obsolete template fixture. |
src/SolutionTemplate/MyAppXamlTrim/MyAppXamlTrim.Wasm/LinkerConfig.xml |
Removes obsolete template fixture. |
src/SolutionTemplate/MyAppXamlTrim/MyAppXamlTrim.UWP/Properties/Default.rd.xml |
Removes obsolete template fixture. |
src/SolutionTemplate/MyAppXamlTrim/MyAppXamlTrim.UWP/Properties/AssemblyInfo.cs |
Removes obsolete template fixture. |
src/SolutionTemplate/MyAppXamlTrim/MyAppXamlTrim.UWP/Package.appxmanifest |
Removes obsolete template fixture. |
src/SolutionTemplate/MyAppXamlTrim/MyAppXamlTrim.UWP/MyAppXamlTrim.Uwp.csproj |
Removes obsolete template fixture. |
src/SolutionTemplate/MyAppXamlTrim/MyAppXamlTrim.Skia.Linux.FrameBuffer/Program.cs |
Removes obsolete template fixture. |
src/SolutionTemplate/MyAppXamlTrim/MyAppXamlTrim.Skia.Linux.FrameBuffer/MyAppXamlTrim.Skia.Linux.FrameBuffer.csproj |
Removes obsolete template fixture. |
src/SolutionTemplate/MyAppXamlTrim/MyAppXamlTrim.Shared/Strings/fr/Resources.resw |
Removes obsolete template fixture. |
src/SolutionTemplate/MyAppXamlTrim/MyAppXamlTrim.Shared/Strings/en/Resources.resw |
Removes obsolete template fixture. |
src/SolutionTemplate/MyAppXamlTrim/MyAppXamlTrim.Shared/MyAppXamlTrim.Shared.shproj |
Removes obsolete template fixture. |
src/SolutionTemplate/MyAppXamlTrim/MyAppXamlTrim.Shared/MyAppXamlTrim.Shared.projitems |
Removes obsolete template fixture. |
src/SolutionTemplate/MyAppXamlTrim/MyAppXamlTrim.Shared/MainPage.xaml.cs |
Removes obsolete template fixture. |
src/SolutionTemplate/MyAppXamlTrim/MyAppXamlTrim.Shared/MainPage.xaml |
Removes obsolete template fixture. |
src/SolutionTemplate/MyAppXamlTrim/MyAppXamlTrim.Shared/Assets/SharedAssets.md |
Removes obsolete template fixture. |
src/SolutionTemplate/MyAppXamlTrim/MyAppXamlTrim.Shared/App.xaml.cs |
Removes obsolete template fixture. |
src/SolutionTemplate/MyAppXamlTrim/MyAppXamlTrim.Shared/App.xaml |
Removes obsolete template fixture. |
src/SolutionTemplate/MyAppXamlTrim/MyAppXamlTrim.Mobile/MyAppXamlTrim.Mobile.csproj |
Removes obsolete template fixture. |
src/SolutionTemplate/MyAppXamlTrim/MyAppXamlTrim.Mobile/iOS/Media.xcassets/LaunchImages.launchimage/Contents.json |
Removes obsolete template fixture. |
src/SolutionTemplate/MyAppXamlTrim/MyAppXamlTrim.Mobile/iOS/Media.xcassets/AppIcons.appiconset/Contents.json |
Removes obsolete template fixture. |
src/SolutionTemplate/MyAppXamlTrim/MyAppXamlTrim.Mobile/iOS/Main.iOS.cs |
Removes obsolete template fixture. |
src/SolutionTemplate/MyAppXamlTrim/MyAppXamlTrim.Mobile/iOS/LaunchScreen.storyboard |
Removes obsolete template fixture. |
src/SolutionTemplate/MyAppXamlTrim/MyAppXamlTrim.Mobile/iOS/Info.plist |
Removes obsolete template fixture. |
src/SolutionTemplate/MyAppXamlTrim/MyAppXamlTrim.Mobile/iOS/Entitlements.plist |
Removes obsolete template fixture. |
src/SolutionTemplate/MyAppXamlTrim/MyAppXamlTrim.Mobile/Android/Resources/values/Styles.xml |
Removes obsolete template fixture. |
src/SolutionTemplate/MyAppXamlTrim/MyAppXamlTrim.Mobile/Android/Resources/values/Strings.xml |
Removes obsolete template fixture. |
src/SolutionTemplate/MyAppXamlTrim/MyAppXamlTrim.Mobile/Android/Resources/AboutResources.txt |
Removes obsolete template fixture. |
src/SolutionTemplate/MyAppXamlTrim/MyAppXamlTrim.Mobile/Android/MainActivity.Android.cs |
Removes obsolete template fixture. |
src/SolutionTemplate/MyAppXamlTrim/MyAppXamlTrim.Mobile/Android/Main.Android.cs |
Removes obsolete template fixture. |
src/SolutionTemplate/MyAppXamlTrim/MyAppXamlTrim.Mobile/Android/environment.conf |
Removes obsolete template fixture. |
src/SolutionTemplate/MyAppXamlTrim/MyAppXamlTrim.Mobile/Android/Assets/AboutAssets.txt |
Removes obsolete template fixture. |
src/SolutionTemplate/MyAppXamlTrim/MyAppXamlTrim.Mobile/Android/AndroidManifest.xml |
Removes obsolete template fixture. |
src/SolutionTemplate/MyAppXamlTrim/MyAppXamlTrim-vsmac.slnf |
Removes obsolete template fixture metadata. |
src/SolutionTemplate/MyAppXamlTrim/.vsconfig |
Removes obsolete template fixture metadata. |
src/SamplesApp/SamplesApp.Skia.netcoremobile/SamplesApp.Skia.netcoremobile.csproj |
Replaces the deleted target import while preserving item globs. |
doc/articles/uno-build-error-codes.md |
Documents UNOB0021 and UNOB0022. |
doc/articles/migrating-to-uno-7.md |
Documents the breaking change. |
doc/articles/migrating-to-single-project.md |
Updates migration guidance. |
doc/articles/migrating-from-previous-releases.md |
Updates previous-release migration guidance. |
build/test-scripts/run-netcore-mobile-template-tests.ps1 |
Removes obsolete template tests. |
build/nuget/uno.winui.win.targets |
Removes UWP target delivery. |
build/nuget/uno.winui.targets |
Removes legacy target routing. |
build/nuget/Uno.WinUI.nuspec |
Removes obsolete packaged assets. |
build/nuget/uno.winui.common.targets |
Adds UNOB0021 validation; requires a WinAppSDK exclusion. |
Suppressed comments (2)
build/test-scripts/run-netcore-mobile-template-tests.ps1:33
- Removing the old template invocations here also removes the only in-repo caller of
Uno.ResourceTrimmingValidatorand its include/exclude.upriassertions. The remaining trimming entries elsewhere in this script only assert build/publish exit codes, so resource-trimming regressions can pass unnoticed. Please re-home those assertions on a liveUno.Sdkrow or delete/retire the validator in the same change.
build/test-scripts/run-netcore-mobile-template-tests.ps1:40 - After the multi-head/UWP fixtures are removed, the remaining
MyUnoLib/asset-library checks are still gated byTestGroup == 0andUWPBuildEnabled. The current template-test matrices invoke this script only with groups 1–4 (and the Linux pipeline uses the other script), so these retained library fixtures are no longer exercised. Move the library checks to an active group or update the matrix/gating so the supported-library contract remains covered.
if ( ($TestGroup -eq 0) -and ($env:UWPBuildEnabled -eq 'True') )
{
if ($IsWindows)
{
# Uno Library
# Mobile is removed for now, until we can get net7 supported by msbuild/VS 17.4
$responseFile = @(
0fbddba to
031bb99
Compare
031bb99 to
f9848a3
Compare
f9848a3 to
ff00906
Compare
|
Claude finished @MartinZikmund's task in 3m 30s —— View job PR Review: refactor! Make the Uno.Sdk the only supported app project formatTasks:
Overall verdict: ship (2 findings, both minor/pre-existing, 0 blockers)Note: the diff currently on this branch ( Findings (2 total — 0 blocking, 2 minor, both carried over from the earlier review pass and still unresolved)
Cross-cutting notes (not filed as inline findings)
Branch: |
There was a problem hiding this comment.
🟡 Changes recommended
It introduces at least one user-facing diagnostic message issue (UNOB0022 text encoding) and a logic inconsistency in the template test script that should be corrected before merge.
Once you've addressed the issues Copilot identified, you can request another Copilot review.
Review details
- Files reviewed: 125/192 changed files
- Comments generated: 2
- Review effort level: Lite
ff00906 to
ea82b68
Compare
|
Claude finished @MartinZikmund's task in 15s —— View job PR Review: Make the Uno.Sdk the only supported app project formatVerdict: ship (0 blockers, 0 inline findings, 1 description nit) Scope: inspection and grep of the branch at What I checked
Description nit (no code change): the PR body still calls the diagnostic UNOB0028 in several places. It should say UNOB0029 in the diagnostics list, the validation table, "Deliberately not done", the redirect follow-up and the migration section. This matters most for the Open items
|
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-24185/wasm-skia-net9/index.html |
|
🤖 Your Docs stage site is ready! Visit it here: https://unodocsprstaging.z13.web.core.windows.net/pr-24185/docs/index.html |
6de4e93 to
8a70464
Compare
|
Claude finished @MartinZikmund's task in 14s —— View job PR Review: Make the Uno.Sdk the only supported app project formatVerdict: ship (0 blockers, 0 inline findings, 1 description nit) Scope: inspection and grep of the branch at Checked
Description nit (no code change): the PR body still says UNOB0028 in several places. It should say UNOB0029 in:
This matters most for the Open items
|
|
🤖 Your Docs stage site is ready! Visit it here: https://unodocsprstaging.z13.web.core.windows.net/pr-24185/docs/index.html |
The Uno.Sdk carried a compatibility layer for the 5.1-and-earlier project format: the `SingleProject` property (superseded by `UnoSingleProject`), the per-platform head layout it enabled, and head-name sniffing. Uno Platform 7.0 supports only Uno.Sdk projects, so the layer is removed: - `_IsUnoSingleProjectAndLegacy` becomes `_IsUnoSingleProject`, keyed on `UnoSingleProject` alone. - `Sdk.props` no longer picks `Microsoft.NET.Sdk.Web` from a `.Wasm`/ `.WebAssembly` project name. - `Uno.Implicit.Packages.ProjectSystem.Legacy.targets`, which only ever fired for a head project literally named `*.Skia.Linux.FrameBuffer`, is deleted — along with its C# twin in `ImplicitPackagesResolver`, whose `TargetRuntime` field nothing read, the `ProjectName` input feeding it, and the `UnoTarget.SkiaLinuxFramebuffer` constant. - `ImplicitPackagesResolver.SingleProject` was likewise never read; it and the MSBuild attribute feeding it are gone. - A new UNOB0022 error tells anyone still setting `SingleProject` to rename it, rather than silently building the project as a non-single-project one. The `Msix` project capability on the WinAppSDK target framework keeps being added for every head: the single-project capabilities file only covers ios and android, so gating it on the single-project flag would have dropped it. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01TkmzHzEzSGmbD66HKNhQHi
The Uno.WinUI package shipped two MSBuild files that only a legacy, non-`Uno.Sdk` project could reach: - `uno.winui.single-project.targets`, imported when `$(SingleProject)` is true — the 5.1-and-earlier single-project layout, since superseded by the Uno.Sdk's own `Uno.DefaultItems.SingleProject` / `Uno.ProjectCapabilities.SingleProject` / `Uno.SingleProject.*` targets. - `uno.winui.win.targets`, shipped only into the `uap10.0.*` buildTransitive folders. The package carries no `lib/uap10.0.*` assets and no `uap10.0` dependency group, so a UWP head already resolved nothing from it. A new UNOB0021 error replaces them for application heads, so a legacy project gets one actionable diagnostic pointing at the migration guide instead of a wall of missing-target failures. It can only see `OutputType`, so an executable that merely links Uno.WinUI trips it too — `UnoDisableUNOB0021Validation` opts out, mirroring the existing `UnoDisableUNOB0002Validation`. Libraries keep building from a plain `Microsoft.NET.Sdk` project, and WinAppSDK heads are untouched — that path does not import `uno.winui.common.targets`. UNOB0020 is deliberately skipped: PR #24087 claims it for the runtime-asset validator. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01TkmzHzEzSGmbD66HKNhQHi
`UnoAppWinUI`, `UnoAppWinUILinuxValidation` and `MyAppXamlTrim` are fixtures for the project format 7.0 removes: a shared class library plus one head project per platform (`.Mobile`, `.Wasm`, `.Skia.Gtk`, `.Skia.Linux.FrameBuffer`, `.Windows`, `.UWP`, `.Shared`), each a `Microsoft.NET.Sdk` project referencing the `Uno.WinUI` package. Nothing built them any more: `run-netcore-mobile-template-tests.ps1` gated them on test group 0, which appears in neither the Windows nor the macOS job matrix, and additionally on `UWPBuildEnabled`, which nothing sets. The library fixtures (`MyUnoLib`, `MyUnoLib2`, `MyCrossRuntimeLib`) stay: a class library may still reference the `Uno.WinUI` package directly. Removing `MyAppXamlTrim` also drops the only caller of `Uno.ResourceTrimmingValidator`. The tool is kept; re-homing that check onto an Uno.Sdk template is left as follow-up work. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01TkmzHzEzSGmbD66HKNhQHi
Documents UNOB0021 and UNOB0022, adds the project-format section to the 7.0 migration guide, and flips the single-project guide's "migration is optional" note — it is now the migration path off the removed format. The per-release notes for 5.1/5.2/5.3 keep describing what was true then, with a pointer to 7.0. The 7.0 guide's package table no longer explains how to wire a "hand-rolled (non-Uno.SDK) head", which the same guide now says is unsupported. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01TkmzHzEzSGmbD66HKNhQHi
The legacy-format removal renamed _IsUnoSingleProjectAndLegacy to _IsUnoSingleProject, but the tvOS import still read the old name, so UnoSingleProject=true tvOS heads lost their Platforms/tvOS items, entitlements and resource prefix. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_0174MvVSZkUu8JP2UoD4dEjG
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_0174MvVSZkUu8JP2UoD4dEjG
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_0174MvVSZkUu8JP2UoD4dEjG
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_0174MvVSZkUu8JP2UoD4dEjG
Master took UNOB0021 for the implicit-package manifest error, and #24186 holds UNOB0023-UNOB0026. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_014vRr9HufCgBEVgt1z8J5Ay
Microsoft.NET.Test.Sdk makes test projects Exe, and uno.winui.common.targets reaches them transitively through any referenced Uno project, so a plain unit-test project referencing an Uno app or library failed with UNOB0028. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Et8VB2QNvP81A7zHdhdrkW
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01DNK1FkwVycsFTk4kM4hq3n
Master took UNOB0028 for the splash screen color and optional package diagnostics. Rebased 2026-10-09. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01NHPnucPE4WuxBEhL1RJG2T
8a70464 to
81b6b2e
Compare
|
Claude finished @MartinZikmund's task in 17s —— View job PR Review: Make the Uno.Sdk the only supported app project formatVerdict: ship (0 blockers, 0 inline findings) Scope: inspection and grep of the branch at Checked
Open items (none are code defects)
|
|
🤖 Your Docs stage site is ready! Visit it here: https://unodocsprstaging.z13.web.core.windows.net/pr-24185/docs/index.html |
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-24185/wasm-skia-net9/index.html |
GitHub Issue: closes unoplatform/uno-private#2063 (internal: "Remove support for non-Sdk projects", Platform 7.0) — part of #8339
PR Type:
💥 Breaking change (project system)
What changed? 🚀
The
Uno.Sdkbecomes the only supported way to build an Uno Platform application. The legacy project format — a plainMicrosoft.NET.Sdkproject that gets Uno behaviour from aPackageReferencetoUno.WinUI, with one head project per platform — is removed.Two flavours existed, and both go:
SingleProjectproperty and the item layout it enabledbuild/nuget/uno.winui.single-project.targets, imported fromuno.winui.targetswhen$(SingleProject) == 'true'uap10.0.*)build/nuget/uno.winui.win.targets, shipped only intobuildTransitive/uap10.0.*SingleProjectalias inside the SDK_IsUnoSingleProjectAndLegacy→_IsUnoSingleProject, keyed onUnoSingleProjectaloneSdk.props'.Wasm/.WebAssembly→Microsoft.NET.Sdk.Webrule;Uno.Implicit.Packages.ProjectSystem.Legacy.targetsand its C# twin, both keyed on a project named*.Skia.Linux.FrameBuffersrc/SolutionTemplate/{UnoAppWinUI,UnoAppWinUILinuxValidation,MyAppXamlTrim}(.Mobile,.Wasm,.Skia.Gtk,.Windows,.UWP,.Shared)Two new diagnostics
Exe/WinExe) referencingUno.WinUIwithout the Uno.Sdk fails with one actionable message linking the migration guide, instead of a wall of missing-target errors. The check can only seeOutputType, so an executable that merely links Uno.WinUI (a console harness, a benchmark runner) trips it as well;UnoDisableUNOB0029Validationopts out, mirroring the existingUnoDisableUNOB0002Validation.SingleProjectno longer selects the single-project layout, so an Uno.Sdk project still spelling it would have silently built as a non-single-project. It now errors and says to rename it toUnoSingleProject.Deliberately not done
Microsoft.NET.Sdklibrary with aPackageReferencetoUno.WinUIstays supported, which is why UNOB0029 is scoped toExe/WinExe(test projects excluded viaIsTestProject, sinceMicrosoft.NET.Test.Sdkmakes themExe) — most third-party and satellite Uno libraries are built that way. The issue is phrased in terms of app project formats. If libraries should move too, that is a separate diagnostic and a separate breaking-change entry. TheMyUnoLib/MyUnoLib2/MyCrossRuntimeLibfixtures stay for the same reason.build/nugetstays.uno.winui.props/targets,uno.winui.common.props/targets,uno.winui.cross-runtime.targets,uno.winui.runtime-replace.targetsanduno.winui.winappsdk.targetsare imported by every Uno.WinUI consumer, Uno.Sdk apps included —uno.winui.common.targetsis the only delivery path forUno.UI.SourceGenerators.propsandUno.UI.Tasks.targets. LikewiseUnoRuntimeIdentifier/uno-runtimeasset selection, which is Skia/WASM machinery, not head plumbing.Uno.Sdk. The issue's "migrate internal samples/tests" line over-specifies:src/SamplesApp/**,src/Uno.UI.RuntimeTests/**and friends consume the framework byProjectReference, not by package — underUno.Sdkthey would resolve published packages instead of the bits they exist to validate. The samples-app move toUno.Sdkalready happened separately (uno-private#2151/Add support for package override warning #2152).Uno.SingleProject.*.targetsfiles stay. "SingleProject" in those filenames is a naming coincidence with the legacy property; they implement the modernPlatforms\layout.Consumer impact review (after rebase on master, 2026-10-10)
UnoSingleProject=true, the template default)_IsUnoSingleProjectevaluates as before; UNOB0029 is skipped viaUsingUnoSdk.*.Serverproject (Microsoft.NET.Sdk.Web,Exe)-server/-server -mauiapp (Uno.Templates 6.7.30):Uno.WinUIdoes not flow to it, souno.winui.common.targetsis never imported.Microsoft.NET.Sdk+Uno.WinUI)Exe/WinExe-only; the template's MauiControls library setsSingleProjectbut has noUno.WinUIreference.Edge cases, all from the 5.0/5.1-era Uno.Sdk multi-head template:
.Mobileheads with<SingleProject>truenow fail with UNOB0022. Renaming toUnoSingleProjectrestores the previous behaviour exactly: without aPlatforms\folder the SDK falls back to the flatAndroid\/iOS\folders.*.Wasm/*.WebAssemblywithoutUnoSingleProjectsilently move fromMicrosoft.NET.Sdk.WebtoMicrosoft.NET.Sdk, because the name-based rule inSdk.propsis gone. There is no diagnostic for this (the match was case-sensitive, so*.wasmnames were never affected). Roughly 24 public repos, none prominent;Uno.Samples/UI/PhotoVieweris one.SingleProjectandUnoSingleProjectwithmauiembeddingno longer getMicrosoft.Maui.Controls.Build.Tasksimplicitly (see Follow-ups).Known first-party projects still on the legacy format, which will need migrating before they move to 7.0:
unoplatform/Uno.Samples(~49.Skia.Gtkheads plus matching.Wasm/.Mobile),uno.todo, theUno.SQLitePCLRaw.Wasmsample,performance, and several private repos (Studio, Figma plugin editor, private samples, Extensions runtime-test heads). The most prominent community projects (Prism, SkiaSharp, LiveCharts2, NuGetPackageExplorer, Mapsui, velopack) are already on the Uno.Sdk.Validation
SamplesApp(Uno.Sdk head,net11.0-desktop) builddotnet restore src/Uno.UI-Skia-only.slnfMSB4019; remaining failures are the missing android/wasm workloads for the .NET 11 preview SDK, present on the base commit too2c706a83b1d),dotnet build src/Uno.Sdk/Uno.Sdk.csprojUno.Implicit.Packages.ProjectSystem.Legacy.targets, deletion keptExeheaduno.winui.common.targets)Library, and underUnoDisableUNOB0029ValidationMicrosoft.NET.Test.Sdkmakes itExeand setsIsTestProject; Uno.WinUI reaches it transitively through a referenced Uno project)IsTestProjectexclusion, silent afterSingleProject=truewithoutUnoSingleProjectdotnet build src/Uno.Sdk/Uno.Sdk.csprojdotnet format --verify-no-changeson the changed C#doc/articles/check_toc.ps1Not validated here: the template-test CI jobs are all
condition: falseonfeature/breakingchanges(the pre-7.0Unoassembly dependency chain), so thesrc/SolutionTemplatedeletions and the Uno.Sdk changes get no CI coverage in this PR. Whoever re-enables those jobs exercises this first.Follow-ups (not in this PR)
*.WasmwithoutUnoSingleProjectdeserve a diagnostic, or just a line in the 7.0 migration guide.aka.platform.uno/UNOB0029and/UNOB0022redirects before 7.0 ships — the diagnostics link them.Uno.ResourceTrimmingValidatorlost its only caller withMyAppXamlTrim. The.upriinclude/exclude assertions should be re-homed onto a live Uno.Sdk row (5.6/uno56netcurrentalready builds withUnoXamlResourcesTrimming=truebut asserts nothing), or the tool retired deliberately.Uno.Extensions.Implicit.Packages.ProjectSystem.targetsinjectedMicrosoft.Maui.Controls.Build.Tasksonly under the rawSingleProject, so modernmauiembeddingheads never received it. The line is removed here, which preserves today's behaviour exactly; whether those heads should get it is an Extensions decision, not a mechanical rename.Uno.WinUI.Runtime.Skia.Linux.FrameBufferany more.ProjectTypeGuidslegacy branches inUno.UI.Tasks.targets/uno.ui.tasks.assets.targetsare genuinely legacy-only, but they drive the asset/PRI pipeline for every consumer and deserve their own PR with an assets round-trip test.uno.winui.cross-runtime.targetsduplicatesuno.winui.common.targetslines 90-166 verbatim, and both are imported — three targets are silently defined twice.PR Checklist ✅
Screenshots Compare Test Runresults. — pending the first CI runBreaking change impact and migration path
Applications on the legacy project format no longer build. They must become a single
Sdk="Uno.Sdk"project; Migrating Projects to Single Project is the step-by-step path, and the 7.0 migration guide gained a matching section. UNOB0029 and UNOB0022 point at both. Class libraries and Windows App SDK heads are unaffected.🤖 Generated with Claude Code
https://claude.ai/code/session_01TkmzHzEzSGmbD66HKNhQHi