[英]Not able to open vs2008 project in vs2010
I am trying to open a project developed in vs2008 but i am getting the following error. 我正在尝试打开一个在vs2008中开发的项目,但出现以下错误。
"cannot be opened because its project type .csproj is not supported by this version of the application". “无法打开,因为此版本的应用程序不支持其项目类型.csproj”。
And I tried by selecting open with-> visual studio version selector but it opens as a vs2010 project and gives the same error. 我尝试通过选择打开方式-> Visual Studio版本选择器进行尝试,但它作为vs2010项目打开,并给出了相同的错误。
When I got this msg, it was because I was opening a "non native" project format. 当我收到此消息时,是因为我正在打开“非本机”项目格式。 Like eg MVC. 例如MVC。 You would have to install that project-type-extension (if that is the correct name? the one that gives you the project template) for VS2010 as well. 您还必须为VS2010安装该project-type-extension(如果正确的名称?为您提供项目模板的名称)。 I think it even needs to be same version.. like MVC2 again instead of MVC3. 我认为它甚至需要相同的版本..像MVC2一样,而不是MVC3。
Similar with XNA. 与XNA类似。
Thanks to all of you for your kind help. 感谢大家的帮助。
I was working on a project and it was in vs 2010, same time i tried to open another project for reference which was in vs 2008, even i opened in new instance it was unable to open that. 我当时正在研究一个项目,当时是在vs 2010中,与此同时,我试图打开另一个项目以在vs 2008中进行参考,即使我在新实例中打开也无法打开它。
At end I closed all the VS instances and opened vs 2008 project first, then it asked for version specification. 最后,我关闭了所有VS实例,并首先打开了vs 2008项目,然后要求版本规范。
Did'nt able to rectify the error but got the solution. 无法纠正错误,但找到了解决方案。
"First close all the opened instances and then open the older one". “首先关闭所有打开的实例,然后再打开较旧的实例”。
Just try to open the solution file in an text editor and change the 只需尝试在文本编辑器中打开解决方案文件并更改
# Visual Studio 2008
to 至
# Visual Studio 2010
Does it help? 有帮助吗?
PS: Here are the differences between VS 2008 and VS 2010 sln and csproj files listed: PS:以下是VS 2008和VS 2010 sln和csproj文件之间的区别:
http://blogs.msdn.com/b/rextang/archive/2009/07/06/9819189.aspx http://blogs.msdn.com/b/rextang/archive/2009/07/06/9819189.aspx
You can try to port manually. 您可以尝试手动移植。 Just make a backup before you do. 要做一个备份就可以了。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.