Skip to content

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

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

Sergio0694 wants to merge 2 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: 01c200e759bc35e08e5539e3b6577fde324674a0

Dimension Assessment Rationale
Change confidence 8/10 ↑ Release x64 builds of the all-components solution succeed locally for uwp (WinUI 2) and wasdk (WinUI 3), including the TreatWarningsAsErrors setting.
↑ Uno net9.0 builds of Collections, Extensions, Animations and Converters succeed.
↑ 25 UWP tests covering the changed code paths passed, 1 skipped (vstest, FrameworkUap10).
↓ Wasm/Android/iOS/macOS heads and the full UWP UI test suite were not validated locally; CI is expected to cover the rest.
↓ Depends on the unmerged tooling PR #320.

⚠️ The tooling submodule currently points at the unmerged draft Tooling-Windows-Submodule#320 (branch sergio0694-remove-legacy-uwp). It must be re-pointed to main after that PR merges.

Fixes

Removes legacy UWP (UAP / uap10.0.17763, .NET Native, MSBuild.Sdk.Extras) support from this repo, following Tooling-Windows-Submodule#320. Modern .NET UWP (net8.0/net9.0-windows10.0.26100.0, WinUI 2 via the uwp MultiTarget) is unchanged.

PR Type

  • Build or CI related changes
  • Refactoring (no functional changes, no api changes)

What is the new behavior?

  • Bumped the tooling submodule to the tooling PR branch.
  • global.json: removed the MSBuild.Sdk.Extras msbuild-sdks pin; TabbedCommandBar csprojs no longer use the Extras SDK (same pattern as the other component projects).
  • Dependencies.props (48 files): updated comments for modern UWP and removed legacy polyfill packages (System.Threading.Tasks.Extensions for Media, Microsoft.Bcl.HashCode for RangeSelector; the latter drops one dependency from the UWP RangeSelector package).
  • Removed the WebView2/Microsoft.VCLibs.Desktop uap workaround, the PolySharp references (not needed on net8+) and the obsolete .NET Native ILC repro artifact step in the workflow.
  • Removed dead conditional code: always-true NET8_0_OR_GREATER, never-true NETSTANDARD2_0, the Uno-only IsCompletedSuccessfully workaround, the orphan CS0518/CS1061 pragmas.

Validation (local, VS 18 MSBuild, Release x64)

  • GenerateAllSolution.ps1 -MultiTargets uwp -winui 2 and -MultiTargets wasdk -winui 3: msbuild /restore succeeds with 0 errors.
  • Uno net9.0 builds of the Collections, Extensions, Animations and Converters source projects succeed.
  • UWP test head built with MSTest 3.11.1 with no new warnings/errors; vstest.console.exe ... /Framework:FrameworkUap10 passed 25 tests (1 skipped) for the changed code (IncrementalLoadingCollection, AdvancedCollectionView, TaskResultConverter, Animations, Shadows).

PR Checklist

  • Based off latest main branch of toolkit
  • Tested code with current supported SDKs
  • Contains NO breaking changes — the CommunityToolkit.Uwp.* packages no longer ship a uap10.0.17763 asset, so legacy .NET Native UWP apps can no longer consume them.

Sergio0694 and others added 2 commits November 30, 2026 12:51
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
- Remove the MSBuild.Sdk.Extras SDK pin and its usages (global.json, TabbedCommandBar csprojs)
- Update component Dependencies.props comments for modern UWP (net*-windows10.*) and drop legacy polyfill packages
- Remove the WebView2/VCLibs uap workaround, PolySharp references, the ILC repro artifact step and dead pragmas
- Remove dead conditional code for netstandard2.0/pre-net8 targets and the Uno-only IsCompletedSuccessfully workaround

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@Sergio0694
Sergio0694 marked this pull request as ready for review November 30, 2026 22:44
@Sergio0694 Sergio0694 mentioned this pull request Dec 1, 2026
1 of 2 tasks
@Sergio0694
Sergio0694 added this pull request to stack #907 December 1, 2026 06:46

This branch has not been deployed

No deployments
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.

1 participant