I get the following error: Could not load file or assembly 'TD_Mgd.dll ...
Hello,
we use Visual Studio together with your dlls BrxMgd.dll, TD_Mgd.dll and TD_MgdBrep.dll.
If try to open a WinForms GUI in the VS designer, I get the following error:
Could not load file or assembly 'TD_Mgd.dll, Version=4.3.1.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The specified module could not be found.
When I open the same GUI under the configuration for AutoCAD, I don't get any errors.
Do you have any suggestions? Thank you.
Comments
-
-
Those managed assemblies can only be loaded into a running BricsCAD process. It is not possible for Visual Studio to load them into the UI designer. The best you can do is to make controls from those assemblies conditional on DesignMode so those controls are not instantiated when displaying in designer.
0 -
Thank you very much for your suggestions.
In order to solve this I tried out the following in the ***.Designer.cs file:
**** cases where the Visual Studio designer quits with error(s) ****
case 1:
this.layerComboBox = new LayerComboBox();case 2: (there has been no instantiation of layerComboBox before)
this.layerComboBox = null;case 3: (even though it is unreachable code)
if (false)
this.layerComboBox = new LayerComboBox();**** cases where the Visual Studio designer works fine ****
case 4:
// this.layerComboBox = null;case 4:
#if !BCAD
this.layerComboBox = new LayerComboBox();
#endif0