Skip to content

Winform Designer generates confliting resource files on partial class #11411

Closed

Description

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

  1. Clone the repo https://github.com/CyrilPaulus/WinFormDesignerPartialResourceBug
  2. Open the file Form1_partial.cs with the WinForm Designer.
  3. The file Form1_partial.resx should have been generated.
  4. Try to compile the project.

Diagnostics

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Labels

🪲 bugProduct bug (most likely)area-VSDesignerWindows Forms out-of-proc designer related issuestenet-compatibilityIncompatibility with previous versions or with WinForms for .NET Frameworktracking

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions