chore(samples): update WinUI3 sample to Windows App SDK 2.x
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 40/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- csharp
- Ambito
- build-system
Direzione di ricerca
Start with samples/todoapp/TodoApp.WinUI3/TodoApp.WinUI3.csproj and the Windows App SDK 2.x release notes and migration guide; first resolve the related sample package version issue. Check toolkit compatibility and the WinUI3 instructions in docs/samples/todoapp/winui3.md, then restore locally and validate the build on the Windows CI runner. Done means CI builds the sample on 2.x, or the issue records why the upgrade is deferred.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Part 7 of the outdated-package sweep (dotnet-outdated 4.8.1, 2026-11-05). Major upgrade of the WinUI3 sample's Windows App SDK. This can only be validated on the Windows CI runner (and cannot be built on macOS: EnableWindowsTargeting=true allows restore only).
Current state
samples/todoapp/TodoApp.WinUI3/TodoApp.WinUI3.csproj:
Microsoft.WindowsAppSDK1.7.250401001 -> latest stable 2.6.5 (check https://api.nuget.org/v3-flatcontainer/microsoft.windowsappsdk/index.json)- Related and handled by the "update sample package versions" issue (do that first):
Microsoft.Windows.SDK.BuildTools,CommunityToolkit.WinUI.Behaviors/Converters.
Things to investigate
- Windows App SDK 2.x release notes and migration guide: https://learn.microsoft.com/windows/apps/windows-app-sdk/ (look at "Windows App SDK 2.0" notes), including minimum Windows version, TFM (
net10.0-windows10.0.xxxxx), requiredMicrosoft.Windows.SDK.BuildToolsversion, packaging/unpackaged-deployment changes, andMicrosoft.WindowsAppSDKbeing split into component packages. - Compatibility of
CommunityToolkit.WinUI.Behaviors/.Converters8.2.x with WinAppSDK 2.x. If incompatible, document and either find a compatible version or defer. TodoApp.Unoalso uses these toolkit packages via the Uno SDK; changing WinUI3 must not change Uno.- Docs for the sample:
docs/samples/todoapp/winui3.md; update any version-specific instructions.
Steps
- Bump the package; adjust the csproj (TFM,
WindowsSdkPackageVersion, etc.) and any XAML/C# per the migration guide. - Locally: only
dotnet restorewithEnableWindowsTargeting=true(don't try to build; AGENTS.md says not to install workloads). - Push the branch to the fork and dispatch
build-samples.yml(orbuild-samples-todoapp-windows.yml) with--ref <branch>; the Windows job must be green. - If the upgrade proves too large, stop, document findings in this issue, and leave the sample on 1.x (adding a note about the support lifecycle).
Acceptance criteria
- WinUI3 sample builds in CI on WinAppSDK 2.x, or this issue documents why it is deferred.
- PR title:
chore(samples): update WinUI3 sample to Windows App SDK 2.x.
- Lingua principale
- C#
- Stelle
- 184
- Fork
- 48
- Merge medio
- 21m
- PR unite (30g)
- 7
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di CommunityToolkit/Datasync
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
CommunityToolkit/Datasync#600 · 1 commento ·
-
Blocked dependencies Server
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
CommunityToolkit/Datasync#594 ·
-
dependencies Infrastructure
Difficoltà 3/5 1-2 giorni Idoneità per principianti 72/100
CommunityToolkit/Datasync#592 ·
-
dependencies Infrastructure
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
CommunityToolkit/Datasync#591 ·
-
dependencies Infrastructure
Difficoltà 2/5 1-3 ore Idoneità per principianti 55/100
CommunityToolkit/Datasync#590 ·
Tutte le issue di CommunityToolkit/Datasync
Issue simili
-
enhancement needs-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
microsoft/microsoft-ui-reactor#1460 ·
I maintainer di solito rispondono entro 1 giorno
-
t/bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
dotnet/maui#39950 · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
NimblePros/deviq-hugo#121 ·
I maintainer di solito rispondono entro 1 giorno
-
RANDOM_REPLACE does not keep the date format when the month abbreviation has a trailing periodAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
philterd/phileas-dotnet#188 ·
-
enhancement triaged
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
nikneem/sessionize-api-client#55 · 3 commenti ·