Fix BuildScript file structure with engine files in different drive

This commit is contained in:
2025-04-13 01:03:17 +03:00
parent be72a9f4a2
commit 711a75ce3b

View File

@@ -174,6 +174,7 @@ namespace Flax.Build.Projects.VisualStudio
}
}
var rootPath = project.WorkspaceRootPath.Replace('/', '\\') + '\\';
foreach (var file in files)
{
string fileType;
@@ -185,7 +186,7 @@ namespace Flax.Build.Projects.VisualStudio
var filePath = file.Replace('/', '\\'); // Normalize path
var projectPath = Utilities.MakePathRelativeTo(filePath, projectDirectory);
string linkPath = null;
if (projectPath.StartsWith(@"..\..\..\"))
if (!filePath.StartsWith(rootPath))
{
// Create folder structure for project external files
var sourceIndex = filePath.LastIndexOf(@"\Source\");