Open CyrilPaulus opened 1 month ago
This issue reproduce in .Net6.0 and not reproduce in .NetFramework 4.8.1
The call stack in the designer repo:
Microsoft.DotNet.DesignTools.Server.dll!Microsoft.DotNet.DesignTools.Serialization.ResourceCodeDomSerializer.GetResourceManager(System.ComponentModel.Design.Serialization.IDesignerSerializationManager manager) Line 252 C#
Microsoft.DotNet.DesignTools.Server.dll!Microsoft.DotNet.DesignTools.Serialization.ResourceCodeDomSerializer.GetMetadataEnumerator(System.ComponentModel.Design.Serialization.IDesignerSerializationManager manager) Line 246 C#
Microsoft.DotNet.DesignTools.Server.dll!Microsoft.DotNet.DesignTools.Serialization.CodeDomSerializerBase.DeserializePropertiesFromResources(System.ComponentModel.Design.Serialization.IDesignerSerializationManager manager, object value, System.Attribute[] filter) Line 1059 C#
Microsoft.DotNet.DesignTools.Server.dll!Microsoft.DotNet.DesignTools.Serialization.TypeCodeDomSerializer.Deserialize(System.ComponentModel.Design.Serialization.IDesignerSerializationManager manager, System.CodeDom.CodeTypeDeclaration declaration) Line 237
@LeafShi1 you will probably need to search the designer repo and see if there is an existing issue.
@LeafShi1 you will probably need to search the designer repo and see if there is an existing issue.
No existing issue found in designer repo
@LeafShi1 create a new designer issue and link it here I think.
CC: @Shyam-Gupta
This is a duplicate of https://github.com/microsoft/winforms-designer/issues/5900
Workaround: add a second class to Form1_partial.cs
Environment
Version 17.9.6
.NET version
8.0.204
Did this work in a previous version of Visual Studio and/or previous .NET release?
No response
Issue description
When editing a control split into a partial class, the designer generates a new resource file for each file contributing to the partial class. This makes compilation impossible, as the generated resource files conflict with each other.
Steps to reproduce
Diagnostics
No response