From 3cb7409b78e98ffea58fc7e9d3b05eb0d72f13e7 Mon Sep 17 00:00:00 2001 From: Sarah Marshall Date: Thu, 18 Jun 2020 18:27:31 -0700 Subject: [PATCH] Use quotes around variables in shell commands --- .../Props/QSharp.targets | 26 ++++++++++--------- 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/src/Quantum.Development.Kit/Props/QSharp.targets b/src/Quantum.Development.Kit/Props/QSharp.targets index f3a638fc586..8168e7919a1 100644 --- a/src/Quantum.Development.Kit/Props/QSharp.targets +++ b/src/Quantum.Development.Kit/Props/QSharp.targets @@ -7,25 +7,25 @@ --> - $(QscExe) $(QsharpDocsGen) --qst $(QsharpTree) --input "@(QsharpFiles,'" "')" --references "@(QsReferences,'" "')" --output $(QsharpOutDir) + $(QscExe) $(QsharpDocsGen) --qst "$(QsharpTree)" --input "@(QsharpFiles,'" "')" --references "@(QsReferences,'" "')" --output "$(QsharpOutDir)" - + - - + + @@ -36,7 +36,7 @@ DependsOnTargets="QsharpPrepare" BeforeTargets="Clean"> - + @@ -52,21 +52,23 @@ false - + false $(BaseIntermediateOutputPath)qsharp - $(QsharpOutDir)\ - $(QsharpOutDir)src\ + $([MSBuild]::Unescape('$(QsharpOutDir)').Replace('\', '/')) + $(QsharpOutDir)/ + $(QsharpOutDir)src/ $(QsharpOutDir).backup.$([System.DateTime]::Now.ToString(`yyyyMMddhhmmss`)) - $(QsharpOutDir)docs\ - --doc $(QsharpDocsOutDir) + $(QsharpOutDir)docs/ + $([MSBuild]::Unescape('$(QsharpDocsOutDir)').Replace('\', '/')) + --doc "$(QsharpDocsOutDir)" $([System.String]::Copy('$(AssemblyName)').Replace(' ','')) - \ No newline at end of file +