I'm working on a project in C++/CLI, which includes some custom-made native libraries, a pair of custom .NET components and many .NET application with Windows Forms.
Right now, I have problem with the Visual Studio designer; each time I add one of our custom components into a form it works, but after closing the designer tab it fails to open again. It always says the following error:
C++ CodeDOM parser error: Line: 143, Column: 19 --- Unknown type 'eng.controls.OpenGLPanel'. Please make sure that the assembly that contains this type is referenced. If this type is a part of your development project, make sure that the project has been successfully built.
I already checked and the application makes a reference to the OpenGLPanel project directly and the control belongs to the eng.Controls
namespace and everything builds correctly.
For your reference, the application is called ElevationViewer and the form is inside the eng.ElevationViewer
namespace. ElevationViewer depends on OpenGLPanel, and OpenGLPanel depends on EngBase, which is a native C++ DLL project.
Why this happens? Do I need something special in the projects configurations to make the designer work?