VS2008到VS2010项目转换 [英] VS2008 to VS2010 project conversion

查看:226
本文介绍了VS2008到VS2010项目转换的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个组件项目建立在VS2008和针对.NET Framework 3.5的。我最近下载了VS2010 Beta 1中,以确保该项目将在转换时正确的时间来切换到新的IDE。该项目包含对一对夫妇对构建框架2.0版本的第三方的DLL。我改变了我的项目,以建立对4.0版本的框架,但是当我尝试建立的项目,我得到一吨的错误,看起来像编译器无法识别类似于低于这些第三方库的类类型。

I have a component project build in VS2008 and targeting the .NET Framework 3.5. I recently downloaded the VS2010 Beta 1 to make sure this project would convert over correctly when the time comes to switch to the new IDE. This project contains references to a couple of 3rd party dlls built against version 2.0 of the framework. I changed my project to build against the 4.0 version of the framework but when I try to build the project I get a ton of errors that looks like the compiler can't recognize the class types of those 3rd party libraries similar to what is below.

的类型或命名空间名称数据不会在命名空间存在'Microsoft.P​​ractices.EnterpriseLibrary(是否缺少程序集引用?)

"The type or namespace name 'Data' does not exist in the namespace 'Microsoft.Practices.EnterpriseLibrary' (are you missing an assembly reference?)"

我想弄清楚,为什么我不能编译。从我已阅读.NET 4.0中使用了不同版本的CLR。如何或为什么会影响我的能力有机会获得那些类型?难道我不得不

I'm trying to figure out why I can't compile. From what I have read .NET 4.0 uses a different version of the CLR. How or why would that impact my ability to have access to those types? Am I going to have to

一)获取源$ C ​​$ C和VS2010重新编译/ .NET 4.0,然后引用该程序集或

a) Get the source code and recompile in VS2010 / .NET 4.0 and then reference that assembly or

b)等到项目作者做一上面并释放他们的集会针对4.0 CLR?或

b) Wait for project authors to do "a" above and release their assemblies targeting the 4.0 CLR? or

C)别的东西,因为也许我VS2010安装是borked?

c) Something else because perhaps my VS2010 install is borked?

我可以改变项目属性为目标3.5和一切正常,我在2010 IDE下所期望的。

I can change the project properties to target 3.5 and everything works as I expect under the 2010 IDE.

推荐答案

我想作为回答的基础上的评论和我自己的经验,我认为迈赫达德是正确的附着问题和评论,以纪念这个问题这是一个VS2010项目转换问题。

I wanted to mark this question as answered and based on the comments and my own experiences, I think that Mehrdad is correct in the comment attached to the question and that it was a VS2010 project conversion problem.

这篇关于VS2008到VS2010项目转换的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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