[dotnet-sdk-9.0.100-rc.2.24470.13] The windowsforms/datagridview demo App build with error: Property 'XXX' does not configure the code serialization for its property content
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
- 42/100
Hướng nghiên cứu
Bắt đầu trong WinformsSamples\datagridview\CSWinFormDataGridView và kiểm tra CSWinFormDataGridView.csproj. Chuyển target của nó sang net9.0-windows và chạy dotnet build với .NET 9 SDK được chỉ định, sau đó xem xét các thuộc tính bị ảnh hưởng dựa trên hướng dẫn tuần tự hóa được tham chiếu. Được xem là hoàn tất khi sample build thành công mà không có lỗi tuần tự hóa mã đã báo cáo.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
We are doing Application compatibility testing with this application against the latest .NET 9 SDK. When retarget the application to net9.0 and build with the latest .NET 9 SDK, it failed with error: Property 'xxx' does not configure the code serialization for its property content
After the investigation, it is related to a .NET 9 breaking change https://github.com/dotnet/docs/issues/42724
You can fix the CodeDOM Serialization configuration for properties if you want
- Attribute with the DesignerSerializationVisibilityAttribute OR
- Attribute with the DefaultValueAttribute OR
- Amend a private bool ShouldSerialize[Property] method, which controls the serialization at Design Time.
Steps to Reproduce (for bugs)
- Cd to WinformsSamples\datagridview\CSWinFormDataGridView
- Change TargetFramework to net9.0-windows in the CSWinFormDataGridView.csproj.
- dotnet build with 9.0.100-rc.2.24470.13.
Expected Result:
build successfully without error
Actual Result:
build failed with Property 'xxx' does not configure the code serialization for its property content
Please refer to more information from https://github.com/dotnet/winforms/issues/12220
- Ngôn ngữ chính
- C#
- Star
- 3.7k
- Fork
- 5.1k
- Merge trung bình
- 19 giờ 47 phút
- Pull request đã merge (30 ngày)
- 2
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/samples
-
dotnet-target-version
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 77/100
-
dotnet-target-version
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
-
dotnet-target-version
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
-
Race condition in orleans/ShoppingCart/Grains/InventoryGrain.cs#L48Có thể đã có người làm @TimonPasslick đã nhận 160 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
-
dotnet-target-version
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Tất cả issue của dotnet/samples
Issue tương tự
-
Audit by ear: boss warnings, other not-enough messages, ailments and barriers in a chapter 1 battleĐang mởenhancement needs-game ready-for-agent
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Sour-Dev-Home/metaphor-accessibility#1273 ·
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 68/100
joinrpg/joinrpg-net#6336 ·
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 76/100
muxinc/mux-csharp#88 ·
-
In-car displays show 0 km/h and P while the AV drivesCó thể đã có người làm @bazilinskyy đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
bazilinskyy/coupled-sim#366 ·
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 76/100
Maintainer thường phản hồi trong vòng 3 ngày