[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
まだ誰も着手していません。
評価
調査の方向性
WinformsSamples\datagridview\CSWinFormDataGridView から開始し、CSWinFormDataGridView.csproj を確認します。net9.0-windows をターゲットに設定し直し、指定された .NET 9 SDK で dotnet build を実行してから、参照されているシリアル化のガイダンスに照らして影響を受けるプロパティを確認します。報告されたコード シリアル化エラーなしでサンプルをビルドできれば完了です。
索引モデルが issue の本文から書いたものです。
説明
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
- 主要言語
- C#
- スター
- 3.7k
- フォーク
- 5.1k
- 平均マージ
- 19時間 47分
- マージ済み PR(30日)
- 2
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
dotnet/samples のほかの issue
-
dotnet-target-version
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
-
dotnet-target-version
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
-
dotnet-target-version
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
Race condition in orleans/ShoppingCart/Grains/InventoryGrain.cs#L48対応中かも @TimonPasslick が 160 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
-
dotnet-target-version
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
似ている issue
-
Audit by ear: boss warnings, other not-enough messages, ailments and barriers in a chapter 1 battleオープンenhancement needs-game ready-for-agent
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
Sour-Dev-Home/metaphor-accessibility#1273 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
joinrpg/joinrpg-net#6336 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
muxinc/mux-csharp#88 ·
-
In-car displays show 0 km/h and P while the AV drives対応中かも @bazilinskyy が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
bazilinskyy/coupled-sim#366 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 3 日以内に返信