简体   繁体   English

无法在vs2010中打开vs2008项目

[英]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.

相关问题 将VS2008 / .NET FX 2.0项目升级到VS2010后出现奇怪的错误 - Getting a weird error after upgrading a VS2008/.NET FX 2.0 project to VS2010 将项目从VS2008转换为Vs2010后的表示/编码错误 - Representation/Encoding error after converting project from VS2008 to Vs2010 vs2008和vs2010之间的公共接口差异? - public interface differences between vs2008 and vs2010? 从VS2008升级到VS2010编译错误 - VS2010 Upgrade from VS2008 compile Error 将 WebService 从 vs2008 转换为 vs2010 - Converting WebService from vs2008 to vs2010 在VS2008或VS2010中构建项目后,如何将类字段和函数以及不同的输入值写入文件 - How to write class fields & functions and different input values to a file after building project in VS2008 or VS2010 VS2010与VS2008中的字符串排序性能下降 - String sorting performance degradation in VS2010 vs. VS2008 如何通过c#编程打开带有某些项目的Visual Studio exe(VS2008,VS2010,VS2012,VS2013)? - How to open Visual Studio exe's(VS2008,VS2010,VS2012,VS2013) with some projects by programming in c#? 从VS2008 C转移到VS2010之前需要考虑的事项# - Things to consider before move to VS2010 from VS2008 C# Team Foundation Server:自定义签入策略在VS2010中起作用,但在VS2008中不起作用 - Team Foundation Server: Custom check-in policy working in VS2010 but not VS2008
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM