Make Microsoft.WindowsPackageManager.ComInterop NuGet package compatible with .1 .NET TFM

Offen
#6,669 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 2 Tagen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Anfängerfreundlichkeit
55/100
Issue-Typ
Bug
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
csharp

Rechercherichtung

The issue names the Microsoft.WindowsPackageManager.ComInterop NuGet package and the C# project’s TargetFramework setting, but no repository file or test. Start by locating the package project and its target framework configuration, then check how package compatibility is verified. Done means the package supports the reported net11.0-windows10.0.26100.1 target without NU1202.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

Area-COM-API Issue-Bug Needs-Triage
Relevant area(s)

WinGet CLI, COM API

Relevant command(s)

No response

Brief description of your issue

Microsoft.WindowsPackageManager.ComInterop NuGet package is incompatible with .NET versions that end with .1. That TFM is required for CsWinRT 3 but also has existed for a while without this NuGet package supporting it. Please make it compatible.

error NU1202: Package Microsoft.WindowsPackageManager.ComInterop 1.29.380 is not compatible with net11.0-windows10.0.26100.1 (.NETCoreApp,Version=v11.0).
Steps to reproduce

Set this in the C# project file

<TargetFramework>net11.0-windows10.0.26100.1</TargetFramework>
Expected behavior

Expect it to work.

Actual behavior

Fails with the aforementioned error.

Environment
winget --info
Windows Package Manager v1.29.380
© 2026 Microsoft. All rights reserved.

Windows: Windows.Desktop v10.0.26320.9876
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.29.380.0
Vorherrschende Sprache
C++
Sterne
26.6k
Forks
1.8k
Ø Merge
3 T. 10 Std.
Gemergte PRs (30 T.)
41

Entwicklungsumgebung

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 microsoft/winget-cli

Alle Issues in microsoft/winget-cli

Ähnliche Issues

Weitere Issues zu C++

Neue Issues direkt in Ihr Postfach

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