Addressing Feedback
* use a better method of getting Editor binary folder
This commit is contained in:
@@ -497,7 +497,7 @@ namespace Flax.Build
|
|||||||
else if (dependencyModule.BinaryModuleName == "FlaxEngine")
|
else if (dependencyModule.BinaryModuleName == "FlaxEngine")
|
||||||
{
|
{
|
||||||
// TODO: instead of this hack find a way to reference the prebuilt target bindings binary (example: game C# project references FlaxEngine C# prebuilt dll)
|
// TODO: instead of this hack find a way to reference the prebuilt target bindings binary (example: game C# project references FlaxEngine C# prebuilt dll)
|
||||||
project.CSharp.FileReferences.Add(Path.Combine(Globals.EngineRoot, $"Binaries/Editor/{project.Configurations[0].PlatformName}/Development/FlaxEngine.CSharp.dll"));
|
project.CSharp.FileReferences.Add(Path.Combine(Globals.EngineRoot, Platform.GetEditorBinaryDirectory(), "Development/FlaxEngine.CSharp.dll"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -519,7 +519,7 @@ namespace Flax.Build
|
|||||||
project.Dependencies.Remove(flaxDependency);
|
project.Dependencies.Remove(flaxDependency);
|
||||||
|
|
||||||
// TODO: instead of this hack find a way to reference the prebuilt target bindings binary (example: game C# project references FlaxEngine C# prebuilt dll)
|
// TODO: instead of this hack find a way to reference the prebuilt target bindings binary (example: game C# project references FlaxEngine C# prebuilt dll)
|
||||||
project.CSharp.FileReferences.Add(Path.Combine(Globals.EngineRoot, $"Binaries/Editor/{project.Configurations[0].PlatformName}/Development/FlaxEngine.CSharp.dll"));
|
project.CSharp.FileReferences.Add(Path.Combine(Globals.EngineRoot, Platform.GetEditorBinaryDirectory(), "Development/FlaxEngine.CSharp.dll"));
|
||||||
|
|
||||||
// Remove FlaxEngine from projects to prevent duplicated types errors in Intellisense (eg. Actor type defined in both FlaxEngine.CSharp.dll and FlaxEngine.csproj)
|
// Remove FlaxEngine from projects to prevent duplicated types errors in Intellisense (eg. Actor type defined in both FlaxEngine.CSharp.dll and FlaxEngine.csproj)
|
||||||
flaxDependencyToRemove = flaxDependency;
|
flaxDependencyToRemove = flaxDependency;
|
||||||
|
|||||||
@@ -405,8 +405,6 @@ namespace Flax.Build.Projects.VisualStudio
|
|||||||
vcSolutionFileContent.AppendLine("EndProject");
|
vcSolutionFileContent.AppendLine("EndProject");
|
||||||
}
|
}
|
||||||
|
|
||||||
var globalPlatformName = "";
|
|
||||||
|
|
||||||
// Global configuration
|
// Global configuration
|
||||||
{
|
{
|
||||||
vcSolutionFileContent.AppendLine("Global");
|
vcSolutionFileContent.AppendLine("Global");
|
||||||
@@ -423,11 +421,7 @@ namespace Flax.Build.Projects.VisualStudio
|
|||||||
continue;
|
continue;
|
||||||
|
|
||||||
foreach (var configuration in project.Configurations)
|
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));
|
configurations.Add(new SolutionConfiguration(configuration));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -564,7 +558,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 editorPath = Utilities.NormalizePath(Path.Combine(Globals.EngineRoot, $"Binaries/Editor/{globalPlatformName}/Development/FlaxEditor{Utilities.GetPlatformExecutableExt()}"));
|
var editorPath = Utilities.NormalizePath(Path.Combine(Globals.EngineRoot, Platform.GetEditorBinaryDirectory(), $"Development/FlaxEditor{Utilities.GetPlatformExecutableExt()}"));
|
||||||
var workspacePath = Utilities.NormalizePath(solutionDirectory);
|
var workspacePath = Utilities.NormalizePath(solutionDirectory);
|
||||||
foreach (var project in projects)
|
foreach (var project in projects)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user