project and solution generation

This commit is contained in:
max
2024-07-21 22:31:04 +02:00
parent 36a134170a
commit 546b7feca7
3 changed files with 20 additions and 4 deletions

View File

@@ -38,6 +38,12 @@ internal static class EditorProject
Project = project;
ProjectFilePath = path;
ProjectPath = Path.GetDirectoryName(path);
string projectSolutionFilePath = Path.Combine(ProjectPath, Project.Name + ".sln");
if (File.Exists(projectSolutionFilePath))
{
ProjectSolutionFilePath = projectSolutionFilePath;
}
SetupDefaultFolders();
Compile();
@@ -112,6 +118,13 @@ internal static class EditorProject
Directory.CreateDirectory(scriptsRuntimePath);
}
// Test create csproject.
string gameplayRuntimePath = Path.Combine(scriptsRuntimePath, ".csproject");
if (!File.Exists(gameplayRuntimePath))
{
Compiler.CSProject.Create(gameplayRuntimePath, "Gameplay", out Compiler.CSProject project);
}
string tempPath = Path.Combine(ProjectPath, "Temp");
if (!Directory.Exists(tempPath))
{