Cleaned up UI and added a way to build .net project from the editor

This commit is contained in:
Antoine Pilote
2023-10-27 01:32:17 -04:00
parent cb51ecc119
commit 6ef9521059
10 changed files with 76 additions and 7 deletions

View File

@@ -101,6 +101,18 @@ namespace Nuake
m_EntityToManagedObjects.clear();
}
void ScriptingEngineNet::BuildProjectAssembly(Ref<Project> project)
{
const std::string sanitizedProjectName = String::Sanitize(project->Name);
if (!FileSystem::FileExists(sanitizedProjectName + ".sln"))
{
Logger::Log("Couldn't find .net solution. Have you created a solution?", ".net", CRITICAL);
return;
}
OS::CompileSln(FileSystem::Root + sanitizedProjectName + ".sln");
}
void ScriptingEngineNet::LoadProjectAssembly(Ref<Project> project)
{
const std::string sanitizedProjectName = String::Sanitize(project->Name);