Fix xcopy path on Windows in Flax.Build

This commit is contained in:
Wojciech Figat
2023-01-11 14:27:37 +01:00
parent 474ce10e7e
commit b1ecb2f0eb

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
{