chore(samples): update WinUI3 sample to Windows App SDK 2.x

Aberta
#593 0 comentários 0 reações 0 responsáveis Ver no GitHub

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
4/5
Tempo estimado
3-5 dias
Facilidade para iniciantes
40/100
Tipo de issue
Funcionalidade
Clareza
Razoavelmente clara
Status de atividade
Ativa
Stack de tecnologia
csharp
Domínio
build-system

Direção de pesquisa

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.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

dependencies Examples

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:

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), required Microsoft.Windows.SDK.BuildTools version, packaging/unpackaged-deployment changes, and Microsoft.WindowsAppSDK being split into component packages.
  • Compatibility of CommunityToolkit.WinUI.Behaviors / .Converters 8.2.x with WinAppSDK 2.x. If incompatible, document and either find a compatible version or defer.
  • TodoApp.Uno also 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

  1. Bump the package; adjust the csproj (TFM, WindowsSdkPackageVersion, etc.) and any XAML/C# per the migration guide.
  2. Locally: only dotnet restore with EnableWindowsTargeting=true (don't try to build; AGENTS.md says not to install workloads).
  3. Push the branch to the fork and dispatch build-samples.yml (or build-samples-todoapp-windows.yml) with --ref <branch>; the Windows job must be green.
  4. 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.
Linguagem predominante
C#
Estrelas
184
Forks
48
Merge médio
21min
PRs com merge (30d)
7

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de CommunityToolkit/Datasync

Todas as issues de CommunityToolkit/Datasync

Issues semelhantes

Mais issues de C#

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.