Merge pull request #41888 from neikeq/sln-bom
C#: Use BOM when creating a solution
This commit is contained in:
commit
bd34d38bf8
1 changed files with 2 additions and 1 deletions
|
|
@ -2,6 +2,7 @@ using GodotTools.Core;
|
|||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Text.RegularExpressions;
|
||||
|
||||
namespace GodotTools.ProjectEditor
|
||||
|
|
@ -88,7 +89,7 @@ namespace GodotTools.ProjectEditor
|
|||
string solutionPath = Path.Combine(DirectoryPath, Name + ".sln");
|
||||
string content = string.Format(SolutionTemplate, projectsDecl, slnPlatformsCfg, projPlatformsCfg);
|
||||
|
||||
File.WriteAllText(solutionPath, content);
|
||||
File.WriteAllText(solutionPath, content, Encoding.UTF8); // UTF-8 with BOM
|
||||
}
|
||||
|
||||
public DotNetSolution(string name)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue