Browse Source

Fixed SD2-461: Cannot build projects with umlauts

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

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

@ -342,7 +342,8 @@ namespace ICSharpCode.SharpDevelop.Project @@ -342,7 +342,8 @@ namespace ICSharpCode.SharpDevelop.Project
globalSection.Append(Environment.NewLine);
}
using (StreamWriter sw = new StreamWriter(fileName)) {
// we need to specify UTF8 because MsBuild needs the BOM
using (StreamWriter sw = new StreamWriter(fileName, false, Encoding.UTF8)) {
sw.WriteLine("Microsoft Visual Studio Solution File, Format Version 9.00");
Version v = System.Reflection.Assembly.GetEntryAssembly().GetName().Version;
sw.WriteLine("# SharpDevelop " + v.Major + "." + v.Minor + "." + v.Build + "." + v.Revision);

Loading…
Cancel
Save