如何在visual studio 2010中将.net framework 4.5转换为4.0 [英] how to convert .net framework 4.5 to 4.0 in visual studio 2010

查看:596
本文介绍了如何在visual studio 2010中将.net framework 4.5转换为4.0的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我正在使用dot net framework(4.0)visual studio 2010。我的一个朋友给了我他在.net framework 4.5(vs 2012)中开发的项目。我无法打开项目

。我得到的错误是无法读取项目文件'EssentialTools.Tests.csproj'。

解决方案中的一个或多个项目未正确加载?
我怎么能将.net framework 4.5转换为4.0。我试图将web.config中的目标版本更改为4.0,但仍然会抛出错误?????

解决方案

请参阅以下链接

http://www.howtosolutions.net/2013/02/solving-project-file-error-could-not-find-part-of-the-path-with-visual-studio/#。 U3GjBYGSxKc [ ^ ]

http://stackoverflow.com/questions/13294932/visual-studio-2012-1-of-4-projects-not-loading [ ^ ]

VS 2012解决方案无法在VS 2010中直接打开。一种方法是在VS2010中创建新项目并将代码文件复制到其中。否则,您需要对VS 2012解决方案进行以下更改:



1.打开Sln文件并更改格式版本到11.00。

2.在app.config文件中,将框架版本更改为4.0。

3.将项目文件中的目标框架更改为4.0。

Hi,
I am using dot net framework (4.0) visual studio 2010 . and one of my friend gave me the project which he developed in .net framework 4.5 ( vs 2012 ) . And i am unable to open the project
. and the error i am getting is Unable to read the project file 'EssentialTools.Tests.csproj'.
one or more projects in solution is not correctly loaded ?
How can i convert .net framework 4.5 to 4.0. And i have tried to change the target version in web.config to 4.0 but still it throws error ?????

解决方案

see the following link
http://www.howtosolutions.net/2013/02/solving-project-file-error-could-not-find-part-of-the-path-with-visual-studio/#.U3GjBYGSxKc[^]
http://stackoverflow.com/questions/13294932/visual-studio-2012-1-of-4-projects-not-loading[^]


VS 2012 solutions cannot be directly opened in VS 2010. One way would be create new project in VS2010 and copy code files to it. Or else, you will need to make following changes to VS 2012 solution:

1. Open Sln file and change Format Version to 11.00.
2. In app.config file, change framework version to 4.0.
3. Change target framework in project file to 4.0.


这篇关于如何在visual studio 2010中将.net framework 4.5转换为4.0的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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