Looks bad but, It seems that the script can't find Project.Projects_Directory on first build and halts at File.WriteAllText. However If you'd manually create the dir, build again, then AGAIN also delete the dir, the saving will work fine forever, so its weird.
summary:
File.WriteAllText can create both the file and directory just not when building first time, for some reason.
Looks bad but, It seems that the script can't find
Project.Projects_Directory
on first build and halts atFile.WriteAllText
. However If you'd manually create the dir, build again, then AGAIN also delete the dir, the saving will work fine forever, so its weird.summary:
File.WriteAllText
can create both the file and directory just not when building first time, for some reason.