You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 12:30:27 +00:00
C#: Save newly created csproj files without BOM
This commit is contained in:
committed by
Rémi Verschelde
parent
4f96c65e13
commit
b5f6285f34
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user