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

Đang mở
#6,669 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 2 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
55/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
csharp

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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
Ngôn ngữ chính
C++
Star
26.6k
Fork
1.8k
Merge trung bình
3 ngày 10 giờ
Pull request đã merge (30 ngày)
41

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của microsoft/winget-cli

Tất cả issue của microsoft/winget-cli

Issue tương tự

Thêm issue về C++

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.