sanvlr12 / google-api-dotnet-client

Automatically exported from code.google.com/p/google-api-dotnet-client
0 stars 0 forks source link

GoogleApisClient and Tools Solutions fail to build if working directory contains spaces. #173

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a working directory called C:\Google API\
2. Clone the current repo source to it.
3. Attempt to build/rebuild either the GoogleApisClient or Tools Solution.

What is the expected output? What do you see instead?
I expected the solutions to build.  

If I attempt to build GoogleApisClient, I get the following error:

Error   17  The command "E:\Prototype Source 
Code\google-api-dotnet-client\Src\GoogleApis\..\..\Tools\Bin\SyncProjectFiles.ex
e E:\Prototype Source 
Code\google-api-dotnet-client\Src\GoogleApis\GoogleApis.csproj E:\Prototype 
Source 
Code\google-api-dotnet-client\Src\GoogleApis\\GoogleApis.Silverlight.csproj" 
exited with code 9009.  GoogleApis

If I attempt to build the Tools solution, I get this one:

Error   2   The command "copy E:\Prototype Source 
Code\google-api-dotnet-client\Tools\SyncProjectFiles\bin\Debug\SyncProjectFiles.
exe E:\Prototype Source Code\google-api-dotnet-client\Tools\Bin" exited with 
code 1. SyncProjectFiles

What version of the product are you using? On what operating system?
Default branch, rev 730

Please provide any additional information below.
It's a simple fix... you just need to add quotes around some of the build 
commands.

For the GoogleApisClient solution to compile, I changed the Build Event 
Properties (Pre-build event command line) in the GoogleApis project from:
$(ProjectDir)..\..\Tools\Bin\SyncProjectFiles.exe $(ProjectPath) 
$(ProjectDir)\GoogleApis.Silverlight.csproj

To:
"$(ProjectDir)..\..\Tools\Bin\SyncProjectFiles.exe" "$(ProjectPath)" 
"$(ProjectDir)\GoogleApis.Silverlight.csproj"

For Tools the tools solution to compile, I changed the Build Event Properties 
(Post-build event command line) in the SyncProjectFiles project from:
copy $(TargetPath) $(SolutionDir)Bin

To:
copy "$(TargetPath)" "$(SolutionDir)Bin"

Original issue reported on code.google.com by bodywork...@gmail.com on 23 Nov 2011 at 8:22

GoogleCodeExporter commented 9 years ago
Here's the diff file.

Original comment by bodywork...@gmail.com on 23 Nov 2011 at 8:35

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by asky...@google.com on 25 Apr 2012 at 5:23

GoogleCodeExporter commented 9 years ago
There is a workaround, though it isn't great so I'm marking this low priority.

Original comment by asky...@google.com on 25 Apr 2012 at 5:23

GoogleCodeExporter commented 9 years ago
Thanks very much for reporting this.

Original comment by asky...@google.com on 25 Apr 2012 at 5:24

GoogleCodeExporter commented 9 years ago

Original comment by pele...@google.com on 10 May 2013 at 9:08

GoogleCodeExporter commented 9 years ago

Original comment by pele...@google.com on 1 Oct 2013 at 5:34

GoogleCodeExporter commented 9 years ago
old issue our release tool is awesome now!

Original comment by pele...@google.com on 7 Nov 2013 at 6:43