Repository navigation
Description
What would you like to be added? 💡
Follow-up items deferred from the SamplesApp head consolidation (PR #23536). Each was examined and evidenced during that PR's review but deferred because it needs validation on a CI leg the PR could not exercise locally, or because it touches a project outside the head.
Uno.Sdk defaults the head restates by hand (~40 lines). The WinUI MSIX block (UseWinUI, EnableMsixTooling, Platforms, RuntimeIdentifiers, ApplicationManifest/Manifest, the Msix ProjectCapability and HasPackageAndPublishMenu groups), the wasm Debug PropertyGroup, the desktop ApplicationManifest/Manifest pair, and the android environment.conf item are all provided by Uno.SingleProject.*.targets / Uno.Common.*.targets. Individually well-evidenced, but together they are a batch of simultaneous bets on SDK defaults concentrated on the WinAppSDK MSIX publish and the android APK — the two paths that cannot be validated on a dev machine. Worth landing as one batch validated against the winappsdk / android / wasm stages.
One trap for whoever picks this up: <Platforms>x86;x64;ARM64</Platforms> differs from the SDK default x86;x64;arm64 only in case, so deleting it is a case change rather than a no-op.
Dead declarations.
DisableImplicitUnoWinAppSdkPackages— its only consumer inUno.Implicit.Packages.ProjectSystem.targetsalso requires a non-ExeOutputType, so it can never fire on a head.- The
EmbeddedResourceforPackage.appxmanifeston non-windows TFMs — very likely a no-op, sinceApplication.SetEntryAssemblyresolves toSamplesApp.Skia, which embeds its own copy. Proving it needs a desktop runtime run ofAssertIssue12937, not a compile.
SamplesApp.Skia.csproj points into the old head's folder. It embeds ..\SamplesApp.Windows\Package.appxmanifest. The two files are byte-identical today, so this is inert, but it has to move to ..\SamplesApp\Platforms\Windows\Package.appxmanifest before the old head folders are deleted. Best done in the deletion change, where it is load-bearing.
Android AndroidAsset double-declaration. Uno.SingleProject.Android.targets already globs $(MonoAndroidAssetsPrefix)/**/* with no Exclude="@(AndroidAsset)", while the head links the same files under Assets\. Deciding which path ms-appx:///Assets/sound.mp3 actually resolves to requires inspecting a built APK.
tvOS has no single-project wiring. There is no Uno.Common.tvOS.targets / Uno.SingleProject.tvOS.targets, so there is no counterpart to Uno.SingleProject.iOS.targets's <None Include="$(iOSProjectFolder)Info.plist" LogicalName="Info.plist" />, and neither the SDK nor the head declares Platforms/tvOS/Info.plist. Needs a macOS build of the tvos TFM to confirm the impact.
The WebAssembly runtime build fragment is never imported. The head imports the Android and AppleUIKit build/*.props/*.targets fragments but not Uno.UI.Runtime.Skia.WebAssembly.Browser/build/*, which exists. Either that is correctly unnecessary or it is the same class of gap as the tvOS one — worth a deliberate answer.
Delete the four old heads. SamplesApp.Skia.Generic, SamplesApp.Skia.WebAssembly.Browser, SamplesApp.Skia.netcoremobile and SamplesApp.Windows are still present and still registered in src/Uno.UI.slnx. Until they go, the 812 lines they represent are not actually saved.
Unrelated, pre-existing, in src/Directory.Build.props. Uno.Foundation.Logging.csproj is listed twice in _AdjustedOutputProjects, and 14 entries name projects deleted by the native-target removal work. The gate is also a substring .Contains() test rather than an exact match — harmless today (no project name is a substring of another listed one), but SamplesApp.Skia.csproj is a substring of UnoIslandsSamplesApp.Skia.csproj, so adding the latter would silently relocate the former's output.
Why is this needed? 🤔
Keeps the consolidated head honest: it should lean on Uno.Sdk rather than restate it, and the stale cross-references should not outlive the old head folders.
For which platforms 📱💻🖥️
Build tasks
Anything else we need to know? 💬
Context and measurements are in specs/051-samplesapp-unosdk-skia/plan.md (see the "Head wiring rationale" appendix) and in the review threads on #23536.
Activity