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

(cherry picked from commit f949e94991)
This commit is contained in:
Raul Santos 2023-03-03 18:17:17 +01:00 committed by Yuri Sizov
parent a397474bd0
commit c4618bcc1b
4 changed files with 13 additions and 3 deletions

View file

@ -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>