473,804 Members | 2,249 Online
Bytes | Software Development & Data Engineering Community
+ 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\Relea se
\Binaries\Objec ts\<project name>\Debug
\Binaries\Objec ts\<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\Obje cts 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\Releas e, 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 1249

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

Similar topics

3
3650
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 directory structure there. If the current directory in step 1 is /home/mylogin, then from there I have to build a directory structure like /home/mylogin/result
1
1511
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 testing. I also have a directory "db" as a peer to "www" where users can upload files for processing. My structure is as follows: www db -net From my aspx page in the "net" directory I want to refer to the "db"
1
53511
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 Directory.CreateDirectory(dirName) Label1.Text = "Directory created" Else
8
17501
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 request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.IO.IOException: The directory name is invalid.
3
1804
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
948
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 can make it return an individual file, but I want the user to be able to select an individual directory NOT a file.
1
2564
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 using filesystemobject to check whether or not a directory existed for the path. if so, it was a directory path. if not, i checked to see if a file existed for it. if so, it was a file path. this code is shown below: ...
1
5686
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 => "Browse...", -file => "\0" . " " x 256,
0
2875
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 http://msdn2.microsoft.com/en-us/library/aa446487.aspx I was able to build the Cab file installer and Setup for the application just fine and I created the CustomInstaller in VB rather than C# in the example.
0
9594
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10599
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10347
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9173
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7635
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6863
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5673
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4308
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 we have to send another system
2
3832
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.