I just upgraded to Visual Studio 2005 and want to know how to set the development environment to create missing build directories. For example. If I have my intermediate directory path under
/test/debug/intermediate/
I do not want to have to go and manually create that directory before doing the build. Can anyone tell me where the switch is

Getting Visual Studio 2005 to create missing directories
dariusj18
Thanks for the comments. I had been using an environment variable for the start of my path
$(COMPILER_OUTPUT_DIR)/debug
where COMPILER_OUTPUT_DIR was defined as /libdotnet.
After changing the definition of the environment variable so that
COMPILER_OUTPUT_DIR = "c:\libdotnet
then the appropriate directories were created during the build.
msatish
Those intermediate directories should have been created automatically at the start of build. What troubles are you having with the build
You can change the build paths by going to Project Properties -> General -> Intermediate Directory. You can create directories by using:
cmd.exe /k md "test\debug\intermediate"
Add this as a prebuild custom step: Project Properties -> Build Events -> Pre build event.
Mathiarasi
We do this automatically actually and there's no switch to turn it off.
Stephen McCloskey
/libdotnet/debug
and my intermediate output directory set to
/libdotnet/myproject/debug
Anyway when I rebuild all, I get a set of
fatal error C1033: cannot open program database 'c\libdotnet\myproject\debug\vc80.pdb'
One of these errors for every source file in the project. If I manually create the directory first then this error goes away.
Any ideas
phillihp
I upgraded from a solution which was originally built under Visual Studio dot net (2003). I have my output directory path set in the project properties to
/libdotnet/debug
and my intermediate output directory set to
/libdotnet/myproject/debug
Anyway when I rebuild all, I get a set of
fatal error C1033: cannot open program database 'c\libdotnet\myproject\debug\vc80.pdb'
One of these errors for every source file in the project. If I manually create the directory first then this error goes away. I would expect the build to automatically create this intermediate directory if it is missing since this was what happened under VC6 and VC7.1.