Added open modes for ofstream when building csharp project

This commit is contained in:
Xiao Qi 2022-11-10 17:37:59 +08:00
parent ed1bc7c62d
commit c95a6a2492
1 changed files with 1 additions and 1 deletions

View File

@ -275,7 +275,7 @@ namespace SHADE
</Project>";
// Attempt to create the file
std::ofstream file(path);
std::ofstream file(path, std::ios::out | std::ios::trunc);
if (!file.is_open())
throw std::runtime_error("Unable to create CsProj file!");