Inherited forms don't work in the designer with Reference dll
See original GitHub issueEnvironment
Microsoft Visual Studio Enterprise 2022 (64-bit) - Current Version 17.4.0
.NET version
net7.0 ,net6.0 , net3.1
Did this work in a previous version of Visual Studio and/or previous .NET release?
No response
Issue description
Inherited forms don’t work in the designer with Reference dll
Steps to reproduce
1- create new WinForms Forms class library project create Form inherit form other . 2- create new WinForms Forms project Add previous class library dll as Reference or edit project. <ItemGroup>
<Reference Include="SkinFramWorkCore">
<HintPath>SkinFramWorkCore.dll</HintPath>
</Reference>
</ItemGroup>
3- open Form
Diagnostics
[05:04:53.583297] fail: Request failures: Sessions/FindDesignableClass.
Microsoft.DotNet.DesignTools.Client.DesignToolsServerException: 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
Form1 --- The base class 'SkinFramWorkCore.SkinForm' could not be loaded. Ensure the assembly has been referenced and that all projects have been built.
For information on how to troubleshoot the designer refer to the guide at https://aka.ms/winforms/designer/troubleshooting.
[05:04:53.680295] fail: Request failures: Sessions/FindDesignableClass.
Microsoft.DotNet.DesignTools.Client.DesignToolsServerException: 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
Form1 --- The base class 'SkinFramWorkCore.SkinForm' could not be loaded. Ensure the assembly has been referenced and that all projects have been built.
For information on how to troubleshoot the designer refer to the guide at https://aka.ms/winforms/designer/troubleshooting.
Issue Analytics
- State:
- Created 10 months ago
- Comments:8 (5 by maintainers)
Top Results From Across the Web
Cannot Display Inherited Form in Form Designer When ...
It seems this a Visual Studio 2022 bug that affects only inherited forms whenever their base classes are stored on x86 dll assemblies....
Read more >Cannot Display Inherited Form in Form Designer When ...
Cause. The Form Designer requires a compiled assembly in order to display an inherited form. If the base form class is contained within...
Read more >VS2022 Designer not working with inherited .Net 6.0 Form
I've got all the libraries compiled and working with .Net6 but when I try to create a new Form using the .Net 6...
Read more >VS2019 WinForms designer inherited forms issue
Developer Community. The VS2019 WinForms designer fails when using inherited forms and x64 CPU builds. This error message is shown when trying ...
Read more >[WinForms] Designer not load Forms with visual ...
When you try to open inherited form in designer, designer will not open with the error: The designer could not be shown for...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
The fix is not shipped yet, it will be shipped on the second Tuesday in December is everything goes well with the sign off.
@Olina-Zhang can your team close this when the associated feedback ticket is closed? Thanks!