Skip to content

Remove legacy UWP (UAP) support and MSBuild.Sdk.Extras - #320

Open
Sergio0694 wants to merge 4 commits into
mainfrom
sergio0694-remove-legacy-uwp
Open

Sergio0694 wants to merge 4 commits into
mainfrom
sergio0694-remove-legacy-uwp

Conversation

@Sergio0694

Copy link
Copy Markdown
Member

Agent assessment

Self-reported assessment, not an independent review.

Assessed revision: b72ebfdbe3048b8325edf5f13320522de8dffe0c

Dimension Assessment Rationale
Change confidence 8/10 ↑ CI-style flow (GenerateSingleSampleHeads → sln build, Release) builds for uwp (WinUI 2) and wasdk (WinUI 3); wasm lib builds; tooling tests pass.
↑ UWP test head runs 9/9 via vstest ... .appxrecipe /Framework:FrameworkUap10.
↑ net8/net9 uwp and wasdk nupkg file lists identical to the pre-change output.

Removes legacy UWP (uap10.0.17763) from the MultiTarget system, keeping modern .NET UWP (net8/net9-windows10.0.26100.0), and removes MSBuild.Sdk.Extras.

  • uwp MultiTarget now only uses net9.0-windows10.0.26100.0;net8.0-windows10.0.26100.0.
  • Component props use Microsoft.NET.Sdk instead of MSBuild.Sdk.Extras (also removed from global.json).
  • Removed uap-only conditions/workarounds and the NETFX_CORE define; merged the UWP package reference props into one file.
  • Removed the UWP gallery heads (the WinUI 3 gallery remains) and TitleBar.UWP.cs.
  • Converted the Tests.Uwp heads to SDK-style modern UWP projects (MSTest 3.11.1, TestHost 18.9.0).

@yoshiask yoshiask left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe I'm not familiar enough with the tooling, but it seems there are lots of changes that will exclude or break UWP on .NET 9+

Comment thread Build-Toolkit-Gallery.ps1 Resolved
Comment thread ProjectTemplate/README.md Resolved
Sergio0694 and others added 4 commits December 2, 2026 10:41
- Drop the 'uap10.0.17763' TFM from the 'uwp' MultiTarget; only modern .NET UWP
  (net8/net9-windows10.0.26100.0 with UseUwp) remains, with no more VS-only TFM switch.
- Replace MSBuild.Sdk.Extras with the plain Microsoft.NET.Sdk in the component props
  and remove the msbuild-sdks entry from global.json.
- Remove UAP-only conditions, the WebView2 package workaround, the NETFX_CORE
  constant, and collapse the UWP package references into a single props file.
- Delete the legacy UWP gallery heads (the WinUI 3 gallery remains) and convert the
  UWP unit test heads to SDK-style modern .NET UWP projects (MSTest 3.11, VSTest 18.9).
- Remove UWP-only gallery code (TitleBar.UWP.cs, UWP Markdown references).

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
With -WinUIMajorVersion 2 the wasdk MultiTarget is excluded, but the default
'Wasdk' head was still built. Filter heads by their MultiTarget instead.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
The modern UWP targets already add the 'Msix' project capability.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@Sergio0694
Sergio0694 force-pushed the sergio0694-remove-legacy-uwp branch from ac880a3 to 837376a Compare December 2, 2026 18:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants