Hey,
we have recently started do switch from VS2015 to VS2022 and most Windows Forms projects now have the following Exception in the Forms-Designer:
“Der Designer konnte für diese Datei nicht angezeigt werden, da keine der enthaltenen Klassen definiert werden kann. Der Designer hat folgende Klassen in der Datei überprüft: frmNavigator -- Die clsMyForm.clsMyForm-Basisklasse konnte nicht geladen werden. Stellen Sie sicher, dass auf die Assembly verwiesen wurde und alle Projekte erstellt wurden.”
This problem occurs on every Form which inherits “clsMyForm”. “clsMyForm” is a class that inherits “System.Windows.Forms” and references a few of our other projects to provide some standard functionality.
The entire project-folder is still compiling and still executes, but the Forms-Designer cannot be opened anymore.
After some Experimenting I believe the problem could be with the fact, that “clsMyForm” has references to other projects so there is now a “chain of dependencies” (no circles), although I am not sure.
Everything is coded in VB with .NET Framework 4.7.
Has anyone ever had a similar issue?
Does anyone know what the problem could be?
Does anyone have an idea how to fix the Forms-Designer?
Thanks in advance!