解决方案: 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"
https://muzizongheng.blog.csdn.net/