diff options
author | Ignacio Etcheverry <ignalfonsore@gmail.com> | 2020-08-20 22:39:44 +0200 |
---|---|---|
committer | RĂ©mi Verschelde <ignalfonsore@gmail.com> | 2020-08-21 01:48:56 +0200 |
commit | b5f6285f34cd9deae2739c205c115e43767b2c86 (patch) | |
tree | fd2006ef22a26a5d1960899101a4062f3fadf7f6 /modules/mono/editor | |
parent | 4f96c65e133a05b39605e7a851774a3089e3ffae (diff) |
C#: Save newly created csproj files without BOM
Diffstat (limited to 'modules/mono/editor')
-rw-r--r-- | modules/mono/editor/GodotTools/GodotTools.ProjectEditor/ProjectGenerator.cs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/mono/editor/GodotTools/GodotTools.ProjectEditor/ProjectGenerator.cs b/modules/mono/editor/GodotTools/GodotTools.ProjectEditor/ProjectGenerator.cs index 5541876f9e..01d7c99662 100644 --- a/modules/mono/editor/GodotTools/GodotTools.ProjectEditor/ProjectGenerator.cs +++ b/modules/mono/editor/GodotTools/GodotTools.ProjectEditor/ProjectGenerator.cs @@ -1,5 +1,6 @@ using System; using System.IO; +using System.Text; using Microsoft.Build.Construction; using Microsoft.Build.Evaluation; @@ -41,7 +42,8 @@ namespace GodotTools.ProjectEditor var root = GenGameProject(name); - root.Save(path); + // Save (without BOM) + root.Save(path, new UTF8Encoding(encoderShouldEmitUTF8Identifier: false)); return Guid.NewGuid().ToString().ToUpper(); } |