473,491 Members | 2,205 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Selecting the path to that obj/ directory

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
Nov 15 '05 #1
0 1232

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
3631
by: Kali K E | last post by:
Hi, I could not understand how I can do the following things in Python. Please help me. 1. First I have to find the current directory from where the script is invoked. 2. Next I have to form a...
1
1495
by: Wayne Wengert | last post by:
I have a web site hosted on a standard commercial ISP. My main web pages are stored in a "www" directory. Under the www directory I have a folder "net" defined as a virtual directory for my .NET...
1
53407
by: Matthias Ludwig | last post by:
I'm trying to create a directory on the web server with a vb.net code: .... Dim dirName As String = "w:\filepath\images" If Not Directory.Exists(dirName) Then...
8
17425
by: Glenn A. Harlan | last post by:
Why am I receiving the below error when calling - Path.GetTempFileName() The directory name is invalid. Description: An unhandled exception occurred during the execution of the current web...
3
1796
by: Marc Robitaille | last post by:
hello, How can I have the path of my web application from the global.asax.vb ? I need the path because I have to create an xml file when the application start. thank you Marc R.
4
937
by: Huw Lloyd | last post by:
Hi, I am writing a windows application in VB.NET 2003 How do I use an open file dialogue so the user can select an individual directory either on the current pc or a network directory. I...
1
2546
by: topramen | last post by:
does any one here know of a good way to to determine whether or not a given path is a directory (e.g., "c:\mydir") or a file (e.g., "c:\mydir \myfile.txt")? i started attacking this problem by...
1
5662
by: baskar2007 | last post by:
Hi I want to select the directory path using the win32::gui. Now i am using Win32::GUI::OpenFileName method like this sub LoadFile { $FilesPath = Win32::GUI::GetOpenFileName( -title =>...
0
2836
by: Andrzej Lipski | last post by:
Hello I am developing a Windows Ce 5.0 mobile application. I followed the example shown at : Creating Self-Updating Applications With the .NET Compact Framework...
0
7115
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7154
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7190
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7360
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5451
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
3086
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3076
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1392
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
633
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.