SharpDevelop默认只能打开VS2010创建的工程,但经过简单的修改就可打开高版本VS创建的工程:
SharpDevelop_5.1.0.5216_Source\src\Main\Base\Project\Src\Project\MSBuildInternals.cs
internal static MSBuild.Evaluation.Project LoadProject(MSBuild.Evaluation.ProjectCollection projectCollection, ProjectRootElement rootElement, IDictionary<string, string> globalProps)
{
lock (SolutionProjectCollectionLock) {
string toolsVersion = rootElement.ToolsVersion;
//将工具版本置空,取默认版本
toolsVersion = "";
if (string.IsNullOrEmpty(toolsVersion))
toolsVersion = projectCollection.DefaultToolsVersion;
return new MSBuild.Evaluation.Project(rootElement, globalProps, toolsVersion, projectCollection);
}
}