Added open modes for ofstream when building csharp project
This commit is contained in:
parent
ed1bc7c62d
commit
c95a6a2492
|
@ -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!");
|
||||
|
||||
|
|
Loading…
Reference in New Issue