解决方案: the selected file is a solution file but was created by a newer version of this application and cannot be opened

最近在用IronGithub访问Github api时遇到一个问题:

the selected file is a solution file but was created by a newer version of this application and cannot be opened

原因是从github拿到的irongithub的源码的solution文件为Visual Studio 2012, 而我本机只装了VS2010.

如何才能用VS2010打开VS2012的solution文件呢?
1.首先确保solution里的csproj是2010版本
2.如果不是2010, 请新建工程,添加文件到工程里生成VS2010的csproj文件
3.可以删除sln文件,直接打开csproj文件来添加。
4.也可以编辑sln文件,(注意:不包括双引号)
     替换"Format Version 12.00" 为 "Format Version 11.00"
     替换"# Visual Studio 2012" 为"# Visual Studio 2010"
posted @ 2013-08-06 16:17  muzizongheng  阅读(3372)  评论(0编辑  收藏  举报
如果我们时时忙着展现自己的知识, 将何从忆起成长所需的无知?