Browse Source

Add support for solution format 12 (VS11).

pull/18/head
Daniel Grunwald 14 years ago
parent
commit
8b846cc18f
  1. 1
      src/AddIns/BackendBindings/CSharpBinding/Project/Src/Project/CSharpProject.cs
  2. 1
      src/Main/Base/Project/Src/Project/CompilableProject.cs
  3. 4
      src/Main/Base/Project/Src/Project/Solution/Solution.cs

1
src/AddIns/BackendBindings/CSharpBinding/Project/Src/Project/CSharpProject.cs

@ -92,6 +92,7 @@ namespace CSharpBinding @@ -92,6 +92,7 @@ namespace CSharpBinding
case Solution.SolutionVersionVS2008:
return msbuild35;
case Solution.SolutionVersionVS2010:
case Solution.SolutionVersionVS11:
return msbuild40;
default:
throw new NotSupportedException();

1
src/Main/Base/Project/Src/Project/CompilableProject.cs

@ -279,6 +279,7 @@ namespace ICSharpCode.SharpDevelop.Project @@ -279,6 +279,7 @@ namespace ICSharpCode.SharpDevelop.Project
case Solution.SolutionVersionVS2008:
return CompilerVersion.MSBuild35;
case Solution.SolutionVersionVS2010:
case Solution.SolutionVersionVS11:
return CompilerVersion.MSBuild40;
default:
throw new NotSupportedException();

4
src/Main/Base/Project/Src/Project/Solution/Solution.cs

@ -19,6 +19,7 @@ namespace ICSharpCode.SharpDevelop.Project @@ -19,6 +19,7 @@ namespace ICSharpCode.SharpDevelop.Project
public const int SolutionVersionVS2005 = 9;
public const int SolutionVersionVS2008 = 10;
public const int SolutionVersionVS2010 = 11;
public const int SolutionVersionVS11 = 12;
/// <summary>contains &lt;GUID, (IProject/ISolutionFolder)&gt; pairs.</summary>
Dictionary<string, ISolutionFolder> guidDictionary = new Dictionary<string, ISolutionFolder>();
@ -414,6 +415,8 @@ namespace ICSharpCode.SharpDevelop.Project @@ -414,6 +415,8 @@ namespace ICSharpCode.SharpDevelop.Project
sw.WriteLine("# Visual Studio 2008");
} else if (versionNumber == SolutionVersionVS2010) {
sw.WriteLine("# Visual Studio 2010");
} else if (versionNumber == SolutionVersionVS11) {
sw.WriteLine("# Visual Studio 11");
}
sw.WriteLine("# SharpDevelop " + RevisionClass.FullVersion);
sw.Write(projectSection.ToString());
@ -486,6 +489,7 @@ namespace ICSharpCode.SharpDevelop.Project @@ -486,6 +489,7 @@ namespace ICSharpCode.SharpDevelop.Project
case "9.00":
case "10.00":
case "11.00":
case "12.00":
break;
default:
MessageService.ShowErrorFormatted("${res:SharpDevelop.Solution.UnknownSolutionVersion}", match.Result("${Version}"));

Loading…
Cancel
Save