System.Data.DataColumn serializes some properties with a default value (different from the .NET Framework) #11314
Labels
area-VSDesigner
Windows Forms out-of-proc designer related issues
💥 regression-release
Regression from a public release
tracking-external-issue
An issue is caused by an external system and won't be fixed in this repo
Milestone
Environment
Microsoft Visual Studio 2022
Version 17.9.3
.NET version
.NET 6 (we use)
.NET 8
Did this work in a previous version of Visual Studio and/or previous .NET release?
Works in the same Visual Studio 2022 Version 17.9.3 or previous versions, but targeting to .NET Framework 4.8.
Issue description
We have a custom Component and ComponentDesigner those are used to create/populate multiple DataTable and DataColumn in the design-time.
After migrating to .NET 6 we are experiencing with an issue that each DataColumn serialize some properties to .Designer.cs and .resx files that looks needless and just increase file size and noise.
Previous code:
Current code:
and .resx
So, ton of Caption, DefaultValue, Namespace properties are added when changing the form design in new Windows Forms Designer..
Is this issue already known? How can be this fixed?
Steps to reproduce
Minimal project is attached
DataColumnSerializationIssue.zip
The text was updated successfully, but these errors were encountered: