From 196ef93fed5494bd90905fb49a425822f5f91564 Mon Sep 17 00:00:00 2001 From: Kah Wei Date: Thu, 15 Sep 2022 09:11:02 +0800 Subject: [PATCH] CSProj for SHADE_Scripting is now generated if a build is attempted without it existing --- SHADE_Engine/src/Scripting/SHScriptEngine.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/SHADE_Engine/src/Scripting/SHScriptEngine.cpp b/SHADE_Engine/src/Scripting/SHScriptEngine.cpp index cb8f24c9..5302cb17 100644 --- a/SHADE_Engine/src/Scripting/SHScriptEngine.cpp +++ b/SHADE_Engine/src/Scripting/SHScriptEngine.cpp @@ -182,6 +182,13 @@ namespace SHADE { constexpr std::string_view BUILD_LOG_PATH = "../Build.log"; + // Generate csproj file if it doesn't exist + static const std::filesystem::path CSPROJ_PATH = "../SHADE_Scripting.csproj"; + if (!std::filesystem::exists(CSPROJ_PATH)) + { + GenerateScriptsCsProjFile(CSPROJ_PATH); + } + // Prepare directory (delete useless files) deleteFolder("net6.0"); deleteFolder("ref");