Sitecore.Ship icon indicating copy to clipboard operation
Sitecore.Ship copied to clipboard

Command line build fails if path contains spaces

Open kevinobee opened this issue 9 years ago • 1 comments

Directory paths are not properly quoted, causing the command line build to fail to getnerate a package as shown below

StdPackage:
  C:\development\Open Source\ship\.nuget\nuget.exe pack  C:\development\Open Source\ship\Build\packaging\Sitecore.Ship.AspNet.nus
  pec -Verbosity detailed -Version 0.4.0.160201 -OutputDirectory C:\development\Open Source\ship\artifacts\Packages
  'C:\development\Open' is not recognized as an internal or external command,
  operable program or batch file.
C:\development\Open Source\ship\Build\build.targets(94,5): error MSB3073: The command "C:\development\Open Source\ship\.nuget\nug
et.exe pack  C:\development\Open Source\ship\Build\packaging\Sitecore.Ship.AspNet.nuspec -Verbosity detailed -Version 0.4.0.16020
1 -OutputDirectory C:\development\Open Source\ship\artifacts\Packages" exited with code 9009. [C:\development\Open Source\ship\Bu
ild\Build.proj]
Done Building Project "C:\development\Open Source\ship\Build\Build.proj" (Go target(s)) -- FAILED.


Build FAILED.

"C:\development\Open Source\ship\Build\Build.proj" (Go target) (1) ->
(StdPackage target) ->
  C:\development\Open Source\ship\Build\build.targets(94,5): error MSB3073: The command "C:\development\Open Source\ship\.nuget\n
uget.exe pack  C:\development\Open Source\ship\Build\packaging\Sitecore.Ship.AspNet.nuspec -Verbosity detailed -Version 0.4.0.160
201 -OutputDirectory C:\development\Open Source\ship\artifacts\Packages" exited with code 9009. [C:\development\Open Source\ship\
Build\Build.proj]

kevinobee avatar Feb 01 '16 05:02 kevinobee

Temporary workaround: Ensure path to repos does not contain spaces.

I'll fix as soon as possible.

kevinobee avatar Feb 01 '16 05:02 kevinobee