question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Inherited forms don't work in the designer with Reference dll

See original GitHub issue

Environment

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

WinFormsApp1.zip

2022-11-27_05-17-27

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:closed
  • Created 10 months ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
Tanya-Solyanikcommented, Dec 6, 2022

The fix is not shipped yet, it will be shipped on the second Tuesday in December is everything goes well with the sign off.

1reaction
merriemcgawcommented, Nov 28, 2022

@Olina-Zhang can your team close this when the associated feedback ticket is closed? Thanks!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found