-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Description
-
.NET Core Version:
3.1 -
Have you experienced this same bug with .NET Framework?:
No
Problem description:
- Create a .NET Core WinForms app.
- Create a form.
- Create a second form.
- Edit the second form's code behind to make it inherit from the first form.
- Open the visual designer for the second form.
The designer will then crash with this error:
The designer could not be shown for this file because none of the classes within it can be designed. The designer inspected the following classes in the file: The designer could not be shown for this file because none of the classes within it can be designed. The designer inspected the following classes in the file: \r\n Form2 --- The base class 'BrokenFormsInheritance.Form1' could not be loaded. Ensure the assembly has been referenced and that all projects have been built. | The designer could not be shown for this file because none of the classes within it can be designed. The designer inspected the following classes in the file: The designer could not be shown for this file because none of the classes within it can be designed. The designer inspected the following classes in the file: \r\n Form2 --- The base class 'BrokenFormsInheritance.Form1' could not be loaded. Ensure the assembly has been referenced and that all projects have been built.
-- | --
The designer could not be shown for this file because none of the classes within it can be designed. The designer inspected the following classes in the file: The designer could not be shown for this file because none of the classes within it can be designed. The designer inspected the following classes in the file: \r\n Form2 --- The base class 'BrokenFormsInheritance.Form1' could not be loaded. Ensure the assembly has been referenced and that all projects have been built.
- Build the project as the error indicates.
The error will remain regardless of if I build the project.
Expected behavior:
The designer opens.
Minimal repro:
see attached