We have a very large solution in VS 2013, and a few of the projects are C++ projects. NCrunch has no problem building them, except if they are located in a folder that contains a space in the name. The error we were seeing was:
"cmd.exe exited with code 9009"
I was trying to look at the logging output and realized the path had a space - renamed the folder to remove the space, and all is well.
Build/Test Issues
C++ projects fail to build if path contains a space
Started by valeriec on 4,369 views
Remco NCrunch Developer
#8109
04 Dec 2015 01:37 UTC
Hi, thanks for sharing this issue. Can you confirm exactly which property in the build XML this applies to?
Edit: Sorry, just realised you were referring to the actual build location (not a build property in the XML file). Does this mean that the NCrunch workspace base path is causing the problem? http://www.ncrunch.net/documentation/reference_global-configuration_workspace-base-path
Edit: Sorry, just realised you were referring to the actual build location (not a build property in the XML file). Does this mean that the NCrunch workspace base path is causing the problem? http://www.ncrunch.net/documentation/reference_global-configuration_workspace-base-path
Edited 04 Dec 2015 01:38 UTC
The space was in the path to my source files. It looks like for C++ projects nCrunch copies the folder structure all the way up to 1-level below the drive letter. For example:
"C:\some words\dev\blah\blabiddy\solutionFolder"
In the nCrunch workspace I see the folder structure has been copied starting with the "some words" folder. I only see it being copied this far up the path for the C++ projects.
"C:\some words\dev\blah\blabiddy\solutionFolder"
In the nCrunch workspace I see the folder structure has been copied starting with the "some words" folder. I only see it being copied this far up the path for the C++ projects.
Remco NCrunch Developer
#8113
04 Dec 2015 22:13 UTC
Gotcha - thanks. Do you have any record of which template the project files were created from? Changing the NCrunch workspace base path will let you work around this, but I think I can provide a better experience from the NCrunch side if I have a way to detect the project type.
I'm not 100% sure - these projects have been around since before I started working here in 2010. But my guess is they were created from the Visual C++/CLR/Class Library template in Visual Studio (or whatever its equivalent was in VS 2010, we are using 2013/2015 now).
Edited 04 Dec 2015 22:22 UTC
Post a reply
Log in to reply.