Browse Source

Fixed SD2-1041: Solution file will not open with Visual Studio Version Selector Program

git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@2054 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
shortcuts
Daniel Grunwald 19 years ago
parent
commit
3b3d9d65ef
  1. 3
      src/Main/Base/Project/Src/Project/Solution/Solution.cs

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

@ -341,10 +341,11 @@ namespace ICSharpCode.SharpDevelop.Project @@ -341,10 +341,11 @@ namespace ICSharpCode.SharpDevelop.Project
globalSection.Append(Environment.NewLine);
}
// we need to specify UTF8 because MsBuild needs the BOM
// we need to specify UTF8 because MSBuild needs the BOM
using (StreamWriter sw = new StreamWriter(fileName, false, Encoding.UTF8)) {
sw.WriteLine();
sw.WriteLine("Microsoft Visual Studio Solution File, Format Version 9.00");
sw.WriteLine("# Visual Studio 2005");
sw.WriteLine("# SharpDevelop " + RevisionClass.FullVersion);
sw.Write(projectSection.ToString());

Loading…
Cancel
Save