Fixing Editor Path
* Again the path was hardcoded to win64
This commit is contained in:
@@ -405,6 +405,8 @@ namespace Flax.Build.Projects.VisualStudio
|
||||
vcSolutionFileContent.AppendLine("EndProject");
|
||||
}
|
||||
|
||||
var globalPlatformName = "";
|
||||
|
||||
// Global configuration
|
||||
{
|
||||
vcSolutionFileContent.AppendLine("Global");
|
||||
@@ -422,6 +424,10 @@ namespace Flax.Build.Projects.VisualStudio
|
||||
|
||||
foreach (var configuration in project.Configurations)
|
||||
{
|
||||
// We just grab the platform name from the first config
|
||||
if (string.IsNullOrEmpty(globalPlatformName))
|
||||
globalPlatformName = configuration.PlatformName;
|
||||
|
||||
configurations.Add(new SolutionConfiguration(configuration));
|
||||
}
|
||||
}
|
||||
@@ -558,8 +564,8 @@ namespace Flax.Build.Projects.VisualStudio
|
||||
{
|
||||
var profiles = new Dictionary<string, string>();
|
||||
var profile = new StringBuilder();
|
||||
var editorPath = Path.Combine(Globals.EngineRoot, "Binaries/Editor/Win64/Development/FlaxEditor.exe").Replace('/', '\\').Replace("\\", "\\\\");
|
||||
var workspacePath = solutionDirectory.Replace('/', '\\').Replace("\\", "\\\\");
|
||||
var editorPath = Utilities.NormalizePath(Path.Combine(Globals.EngineRoot, $"Binaries/Editor/{globalPlatformName}/Development/FlaxEditor{Utilities.GetPlatformExecutableExt()}"));
|
||||
var workspacePath = Utilities.NormalizePath(solutionDirectory);
|
||||
foreach (var project in projects)
|
||||
{
|
||||
if (project.Type == TargetType.DotNetCore)
|
||||
|
||||
Reference in New Issue
Block a user