From 870e80a37809f38fad06832e5ec87a6c84a9653a Mon Sep 17 00:00:00 2001 From: Alexander Morogov Date: Tue, 26 Mar 2024 10:38:08 +0100 Subject: [PATCH] VCI-151: Fix path escaping in CompleteRelease target --- src/VirtoCommerce.Build/Build.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/VirtoCommerce.Build/Build.cs b/src/VirtoCommerce.Build/Build.cs index 304d02f..59f7458 100644 --- a/src/VirtoCommerce.Build/Build.cs +++ b/src/VirtoCommerce.Build/Build.cs @@ -463,8 +463,8 @@ protected override void OnTargetFailed(string target) } else { - var manifestPath = IsModule ? RootDirectory.GetRelativePathTo(ModuleManifestFile) : ""; - filesToAdd = $"Directory.Build.props {manifestPath}"; + var manifestPath = IsModule ? $"\"{RootDirectory.GetRelativePathTo(ModuleManifestFile)}\"" : ""; + filesToAdd = $"\"Directory.Build.props\" {manifestPath}"; } GitTasks.Git($"add {filesToAdd}");