Fix xcopy path on Windows in Flax.Build

This commit is contained in:
Wojciech Figat
2023-01-11 14:27:37 +01:00
committed by Wojtek Figat
parent a7e428a21c
commit 810f7fb803

View File

@@ -82,7 +82,7 @@ namespace Flax.Build.Graph
if (Platform.BuildPlatform.Target == TargetPlatform.Windows)
{
task.CommandPath = "xcopy";
task.CommandArguments = string.Format("/y \"{0}\" \"{1}\"", srcFile, outputPath);
task.CommandArguments = string.Format("/y \"{0}\" \"{1}\"", srcFile.Replace('/', '\\'), outputPath.Replace('/', '\\'));
}
else
{