Hello, this is my first time on this newsgroup, so I'm not sure if this has
been asked a lot of times before, or it is in a FAQ, or it's just not the
right group to ask in.
Whenever I make a C# project, I can choose where my binaries go, but Visual
Studio always creates an "obj/" directory where it puts the
objects/intermediate files on the same path my project is.
I come from C++, and my projects usually have the following structure:
\
\Binaries
\Binaries\Debug
\Binaries\Release
\Binaries\Objects\<project name>\Debug
\Binaries\Objects\<project name>\Release
\RunData\
\Src
\Src\<project name>
The solution (or workspace) goes to \Src, projects in that
solution/workspace go to \Src\<project name>, the data files go to \RunData,
and the binaries generated by the compiler go to \Binaries
(\Binaries\Objects for intermediate files).
This way, I can just zip up \Src at any point and have only the source codes
and project files without any binary, or I can zip up RunData, add the
latest exceutable/dll's in Binaries\Release, and I have a production release
available.
In Visual Studio.Net, for C# projects, it won't let me choose where the
intermediate files go, so this directory structure becomes useless, as the
temporary files get messed up with the source code... I could make a simple
program that recurses subdirectories and goes around deleting obj\
directories... Still not a good solution, as I'd have to make full rebuilds
of everything everytime I wanted to make a backup of the source code (either
that, or make several steps for making the backup... copying the whole Src
directory [with intermediate files] to another location, then automatically
delete obj\ directories from that other location, then pack up)...
nonetheless, a pain in the butt.
Is there any way to tell the compiler where intermediate files would be for
C# projects?
Thank you very much,
Javier Campos
Virtual Media Systems, S.L.
Spain