Run editor with selected project configuration in launchSettings.json
This commit is contained in:
@@ -311,6 +311,7 @@ namespace Flax.Build.Projects.VisualStudio
|
|||||||
}
|
}
|
||||||
csProjectFileContent.AppendLine(string.Format(" <DocumentationFile>{0}\\{1}.CSharp.xml</DocumentationFile>", outputPath, project.BaseName));
|
csProjectFileContent.AppendLine(string.Format(" <DocumentationFile>{0}\\{1}.CSharp.xml</DocumentationFile>", outputPath, project.BaseName));
|
||||||
csProjectFileContent.AppendLine(" <UseVSHostingProcess>true</UseVSHostingProcess>");
|
csProjectFileContent.AppendLine(" <UseVSHostingProcess>true</UseVSHostingProcess>");
|
||||||
|
csProjectFileContent.AppendLine(string.Format(" <FlaxConfiguration>{0}</FlaxConfiguration>", configuration.ConfigurationName));
|
||||||
|
|
||||||
csProjectFileContent.AppendLine(" </PropertyGroup>");
|
csProjectFileContent.AppendLine(" </PropertyGroup>");
|
||||||
|
|
||||||
|
|||||||
@@ -630,7 +630,7 @@ namespace Flax.Build.Projects.VisualStudio
|
|||||||
{
|
{
|
||||||
var profiles = new Dictionary<string, string>();
|
var profiles = new Dictionary<string, string>();
|
||||||
var profile = new StringBuilder();
|
var profile = new StringBuilder();
|
||||||
var configuration = "Development";
|
var configuration = "$(FlaxConfiguration)";
|
||||||
var editorPath = Utilities.NormalizePath(Path.Combine(Globals.EngineRoot, Platform.GetEditorBinaryDirectory(), configuration, $"FlaxEditor{Utilities.GetPlatformExecutableExt()}")).Replace('\\', '/');
|
var editorPath = Utilities.NormalizePath(Path.Combine(Globals.EngineRoot, Platform.GetEditorBinaryDirectory(), configuration, $"FlaxEditor{Utilities.GetPlatformExecutableExt()}")).Replace('\\', '/');
|
||||||
var workspacePath = Utilities.NormalizePath(solutionDirectory).Replace('\\', '/');
|
var workspacePath = Utilities.NormalizePath(solutionDirectory).Replace('\\', '/');
|
||||||
foreach (var project in projects)
|
foreach (var project in projects)
|
||||||
|
|||||||
Reference in New Issue
Block a user