Unable to use Visual Studio project on different computer

一世执手 提交于 2019-12-08 05:38:39

问题


I was working on a project (winforms, C++/Cli) on my desktop. When I copy project files to use it in my laptop, designer do not open.

References to the 3rd party library[MetroFramework] is properly linked (project compile & run fine, no build error)
but if I open designer I receive the following error

C++ CodeDom parser error: Line:99,Column:27 --unknown type".please make sure that the assembly that contains this type is referenced. if this is a part of your development project, make sure that the project has been successfully built"

code at line 99:

this->metroTabControl1 = (gcnew MetroFramework::Controls::MetroTabControl());

Note: In designer, if I click on ignore & Continue, I get plain win form. Here if I drag & drop MetroFramework's UI control (metroTabControl) it display's fine. but if i close & reopen designer again i see the same error!!

Tried few suggestions from here & here, none of them worked!


回答1:


Remove all toolbox items and references. Provide full path in vcproj. Remove and then connect the respective DLL required.



来源:https://stackoverflow.com/questions/39585828/unable-to-use-visual-studio-project-on-different-computer

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!