WebBrowser interop API how-to example code does not work in .NET 5.0
Maintainer thường phản hồi trong vòng 4 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 38/100
- Loại issue
- Tài liệu
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- csharp
- Lĩnh vực
- desktop, documentation
Hướng nghiên cứu
Cập nhật dotnet-desktop-guide/framework/winforms/controls/implement-two-way-com-between-dhtml-and-client.md. Trước tiên, hãy đọc issue dotnet/winforms#4443 được liên kết và so sánh hướng dẫn .NET 5.0 của issue đó với ví dụ .NET Framework 4.8 hiện có. Công việc được hoàn thành khi trang cảnh báo về tính không tương thích hoặc cung cấp một phiên bản .NET 5.0 được cập nhật phù hợp.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
This how-to contains example code that worked in .NET Core 3.1 but no longer works in .NET 5.0.
See dotnet/winforms#4443 for details.
I recognize this how-to page is only for .NET Framework 4.8, but there is no other version of this how-to, and WebBrowser is a supported API of both .NET Core 3.1 and .NET 5.0.
Please consider either (a) adding a "note" element in this how-to with a warning and explanation of the issue for .NET 5.0 or (b) create and appropriately update a copy of this how-to for .NET 5.0.
If it's useful to summarize here, the correct code for .NET 5.0 should either:
-
(a) define an interface containing the signature of
Test, add that interface toForm1's declaration, then annotateForm1withComDefaultInterface; or -
(b) extract
Testto a new type, then assign an instance of that type toObjectForScripting(instead of assigningthis).
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
- ID: c586d0c9-fb61-4fb5-6f7b-2d1a8abc0dd4
- Version Independent ID: 5e8ef638-ba4d-4b78-b9b4-79e4732b77c8
- Content: How to: Implement Two-Way Communication Between DHTML Code and Client Application Code - Windows Forms .NET Framework
- Content Source: dotnet-desktop-guide/framework/winforms/controls/implement-two-way-com-between-dhtml-and-client.md
- Product: dotnet-framework
- Technology: dotnet-winforms
- GitHub Login: @adegeo
- Microsoft Alias: adegeo
- Ngôn ngữ chính
- C#
- Star
- 241
- Fork
- 192
- Merge trung bình
- 10 giờ 23 phút
- Pull request đã merge (30 ngày)
- 6
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của dotnet/docs-desktop
-
:watch: Not Triaged dotnet-target-version
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 84/100
dotnet/docs-desktop#2313 ·
Maintainer thường phản hồi trong vòng 4 ngày
-
Kuzuberkcem116@comĐang mở:watch: Not Triaged dotnet-framework/svc wpf/subsvc
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 22/100
dotnet/docs-desktop#2296 ·
Maintainer thường phản hồi trong vòng 4 ngày
-
:watch: Not Triaged dotnet-framework/svc wpf/subsvc
Độ khó 3/5 Nửa ngày Mức phù hợp với người mới 22/100
dotnet/docs-desktop#2295 ·
Maintainer thường phản hồi trong vòng 4 ngày
-
[EPIC] Additional migration efforts after the great mergeCó thể làm lại được @adegeo đã nhận 572 ngày trước và không có pull request nào đang mở. Đang mởdotnet-desktop/svc dotnet-framework/svc winforms/subsvc wpf/subsvc
dotnet/docs-desktop#2083 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 4 ngày
-
How do you populate the WinForms Toolbox in .NET?Có thể đã có người làm @adegeo đã nhận 672 ngày trước. Đang mở:pushpin: seQUESTered doc-idea dotnet-desktop/svc winforms/subsvc
dotnet/docs-desktop#1994 · 1 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 4 ngày
Tất cả issue của dotnet/docs-desktop
Issue tương tự
-
dotnet-target-version
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 77/100
-
:watch: Not Triaged dotnet-target-version
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 80/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
IntelliTect/Coalesce#794 · 1 bình luận ·
-
Project dependencies are outdatedCó thể đã có người làm @yasmoradi đã nhận hôm nay. Đang mởdependencies
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 68/100
bitfoundation/bitplatform#15562 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug priority:low severity:S3
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
squid-farm/talewright#909 ·
Maintainer thường phản hồi trong vòng 1 ngày