如何将VS 2008解决方案转换为VS 2010解决方案 [英] How to convert VS 2008 solution to VS 2010 solution

查看:89
本文介绍了如何将VS 2008解决方案转换为VS 2010解决方案的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个用VS 2008 .NET 3.5构建的C#/C ++项目.该项目可以在设计的机器上正常运行,但可以在运行VS 2010 .NET 4.0的机器上正常运行.它会生成所有类型的构建错误,即(无法找到.dll,无此类路径,目标框架不正确等).

此解决方案有两个创建.dll的C ++项目,并将它们放在适当的文件夹中,供其他4个C#项目使用.

我的印象是VS转换向导可以处理转换,但似乎我错了!

有人可以告诉我我需要什么来构建和运行该项目.

预先感谢,
-DA

I have a C#/C++ project that was built with VS 2008 .NET 3.5. The project builds and runs fine on the machine that it was designed on but on my machine which is running VS 2010 .NET 4.0. it''s generating all types build errors i.e. (unable to locate .dll, no such path, target framework incorrect, etc...)

This solution has two C++ projects that create .dll''s and places them in the appropriate folders which are used by 4 other C# projects.

I was under the impression that the VS conversion wizard would handle the conversion but seems that i was wrong!

Can someone please tell me what I need to get this project built and running.

Thanks in advance,
-DA

推荐答案

只需使用VS 2010打开解决方案即可.将为您提供转换解决方案.只需获得您的许可即可.

兼容性问题当然是可能的,但是它们主要与记录在案的API的某些部分过时(或在.NET中用属性标记)有关.而且,如果您使用一些未记录的,潜在的不兼容或可疑的技术(讨论这些技术将超出本论坛的范围),则不能保证正确的运行时行为,但是在这种情况下,即使对于现有的行为,也无法真正保证这种行为.产品.

祝你好运,保持兼容性,
—SA
Just open the solution using VS 2010. You will be offered to convert it. Just give your permission to do so.

Compatibility issues are of course possible, but they are mostly related to parts of API documented (or marked by the attribute in case of .NET) as obsolete. And if you use some undocumented, potentially incompatible or questionable techniques (discussing of those would go well beyond the format of this forum), correct run-time behavior is not guaranteed, but in such cases such behavior is not really guaranteed even for an existing product.

Good luck, stay compatible,
—SA


这篇关于如何将VS 2008解决方案转换为VS 2010解决方案的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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