From b1ecb2f0eb8e09a5c9a2c5f9c1d3bc70f49e4c85 Mon Sep 17 00:00:00 2001 From: Wojciech Figat Date: Wed, 11 Jan 2023 14:27:37 +0100 Subject: [PATCH] Fix `xcopy` path on Windows in `Flax.Build` --- Source/Tools/Flax.Build/Build/Graph/TaskGraph.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Tools/Flax.Build/Build/Graph/TaskGraph.cs b/Source/Tools/Flax.Build/Build/Graph/TaskGraph.cs index e3a3a341f..5e092d155 100644 --- a/Source/Tools/Flax.Build/Build/Graph/TaskGraph.cs +++ b/Source/Tools/Flax.Build/Build/Graph/TaskGraph.cs @@ -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 {