project and solution generation
This commit is contained in:
@@ -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))
|
||||
{
|
||||
|
Reference in New Issue
Block a user