This project is read-only.

Build error when project is located in a path which contains spaces


I can build Demo.Simple and Demo.Advanced when I put the project on my desktop, but it will not build when it is located in my "C:\Users\murtjaf\Documents\Visual Studio 2012\Projects" folder. Here is the error:
Error 51 The command "C:\Users\murtjaf\Documents\Visual Studio 2012\Projects\PhysicsHelperXAML_1.1.0.0\Demos.Metro\Demo.Advanced.Metro....\CleanUsingXmlns\bin\Debug\CleanUsingXmlns addusing C:\Users\murtjaf\Documents\Visual Studio 2012\Projects\PhysicsHelperXAML_1.1.0.0\Demos.Metro\Demo.Advanced.Metro....\Demos.Metro\Demo.Advanced.Metro\ Demo.Advanced,Spritehand
" exited with code 9009. Demo.Advanced


murtazajafferji wrote Sep 26, 2012 at 8:24 PM

This is how I fixed the error in Visual Studio:

Debug > Demo.Advanced Properties... > Build Events > Edit Pre-build

Change this:
$(ProjectDir)....\CleanUsingXmlns\bin\Debug\CleanUsingXmlns addusing $(ProjectDir)....\Demos.Metro\Demo.Advanced.Metro\ Demo.Advanced,Spritehand

to this (add quotes):
"$(ProjectDir)....\CleanUsingXmlns\bin\Debug\CleanUsingXmlns" addusing "$(ProjectDir)....\Demos.Metro\Demo.Advanced.Metro\ Demo.Advanced,Spritehand"

Do the same for Demo.Simple.

MaxGroove wrote Dec 3, 2012 at 5:34 AM

I'm having the same problem, but when I tried your solution it was simply double quoted. I.e., ""$(ProjectDir) .... Spritehand""

wrote Feb 14, 2013 at 8:13 PM