无法在不同的计算机上使用 Visual Studio 项目 [英] Unable to use Visual Studio project on different computer

查看:49
本文介绍了无法在不同的计算机上使用 Visual Studio 项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在我的桌面上处理一个项目(winforms、C++/Cli).当我复制项目文件以在我的笔记本电脑中使用它时,设计器不会打开.

对第 3 方库的引用[MetroFramework] 已正确链接(项目编译和运行正常,没有构建错误)
但是如果我打开设计器,我会收到以下错误

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 解析器错误: Line:99,Column:27 --unknown type".please确保引用了包含此类型的程序集.如果这是您开发项目的一部分,请确保该项目已成功构建"

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"

第 99 行的代码:

code at line 99:

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

注意:在设计器中,如果我点击 ignore &继续,我得到了简单的胜利形式.在这里,如果我拖动 &放下 MetroFramework 的 UI 控件 (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!

推荐答案

删除所有工具箱项和引用.在 vcproj 中提供完整路径.删除然后连接所需的相应 DLL.

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

这篇关于无法在不同的计算机上使用 Visual Studio 项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆