Fix TFM precedence issues between netX.0 and netX.0-windows* in NuGet packages

Offen
#238 13 Kommentare 2 Reaktionen 1 zugewiesene Person Auf GitHub ansehen

@Arlodotexe arbeitet bereits daran.

Seit 21.12.2024.

Bewertung

Dieses Issue wurde noch nicht bewertet.

Beschreibung

bug :bug:
Describe the bug

I was testing the new builds from main and noticed all UWP packages are broken on .NET 9:

Image

The core of the issue is that we have a net9.0 TFM pulling in Uno dependencies. We should not do this. The official guidance for packages that have UI framework dependencies is to have different packages for different UI frameworks. Uno should have their own packages as well. We need 4:

  • *.Uwp: UWP .NET Native and .NET 9
  • *.Uwp.Uno: UWP XAML Uno flavor
  • *.WinUI: WinUI 3
  • *.WinUI.Uno: WinUI 3 Uno flavor

As a short term solution, we can add a net9.0-windows10.0.26100.0 TFM to work around the issue for UWP .NET 9 consumers.

Code Platform
  • UWP
  • WinAppSDK / WinUI 3
  • Web Assembly (WASM)
  • Android
  • iOS
  • MacOS
  • Linux / GTK
Vorherrschende Sprache
C#
Sterne
57
Forks
20
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Entwicklungsumgebung

In Codespaces öffnen

Startet den Dev-Container des Projekts im Browser, mit Ihrem eigenen GitHub-Konto.

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus CommunityToolkit/Tooling-Windows-Submodule

Alle Issues in CommunityToolkit/Tooling-Windows-Submodule

Ähnliche Issues

Weitere Issues zu C#

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.