C#: Encode GodotProjectDir as Base64 to prevent issues with special characters

This commit is contained in:
Raul Santos
2023-03-03 18:17:17 +01:00
parent 61d2c85511
commit f949e94991
4 changed files with 13 additions and 3 deletions
@@ -7,6 +7,7 @@
<PropertyGroup>
<!-- $(GodotProjectDir) would normally be defined by the Godot.NET.Sdk -->
<GodotProjectDir>$(MSBuildProjectDirectory)</GodotProjectDir>
<GodotProjectDirBase64>$([MSBuild]::ConvertToBase64('$(GodotProjectDir)'))</GodotProjectDirBase64>
<!-- For compiling GetGodotPropertyDefaultValues. -->
<DefineConstants>$(DefineConstants);TOOLS</DefineConstants>
</PropertyGroup>