473,395 Members | 1,742 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

VS NET 2003 and app.config

adi
Hi

When building a project, the app.config file (if exists) will be copied
to current configuration folder (i.e. Debug or Release) with a
different name: <proj_name>.exe.config.
Recently, I have painfully discovered that storing settings to this
file is all wrong - the file is not updatable (anyway, not using
standard methods). So, I decided to keep my settings to a different XML
file.
Anyway, I want my file to be included in the project, just as
app.config file is, so I can modify it, then - and this is the
important thig - to instruct the compiler to copy the file to active
configuration folder - just as app.config is.

Is it possible?
Thanks.

Dec 12 '06 #1
1 1344
adi
Hi Manish
Thanks, I will dig it.

Manish Bafna a scris:
Hi,
In the Build Events, choose to run a Post-Build event when a successful
build occurs and add a Post-Build event command line of:

copy "$(ProjectDir)CustomUser.config" "$(TargetDir)"

In the following URL you will find explanation in detail.It is explaining
exactly what you are looking for:

http://visualstudiohacks.com/customizeBuild

Thanks and Regards,
manish bafna
"adi" wrote:
Hi

When building a project, the app.config file (if exists) will be copied
to current configuration folder (i.e. Debug or Release) with a
different name: <proj_name>.exe.config.
Recently, I have painfully discovered that storing settings to this
file is all wrong - the file is not updatable (anyway, not using
standard methods). So, I decided to keep my settings to a different XML
file.
Anyway, I want my file to be included in the project, just as
app.config file is, so I can modify it, then - and this is the
important thig - to instruct the compiler to copy the file to active
configuration folder - just as app.config is.

Is it possible?
Thanks.
Dec 12 '06 #2

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

Similar topics

1
by: David Lee | last post by:
Need some help bad here. Am using VB.Net Standard 2003 supplied for a class and I need to install Msde and the sample databases to work on homework. Following the documentation I can download...
1
by: rbt | last post by:
The below script produces a ' Bad File Descriptor' when executed. If I remove the try: except: statements, the script stops when the error occurs. The purpose of the script is to monitor the...
3
by: Les Caudle | last post by:
When I compile my project in VS.NET 2003, the projectName.exe.config file in the BIN directory is deleted. This was not the case in VS.NET 2002. How can I resolve this? -- Thanks in advance,...
2
by: Dave Girvitz | last post by:
Yesterday I was giving a presentation on the Trace Class to my user's group. For the purposes of the presentation, I wrote a quick app that used a configuration file to set the TraceLevel of my...
2
by: noleander | last post by:
I'm trying to get Vis C++ std to compile using /O2 optimizing flag. Many people have suggested downloading the MS C++ 2003 Toolkit ... it supposedly has C++ compiler bins that one could use. I...
6
by: David Waz... | last post by:
Moved an app from W/2000 Asp V1.0 to W/2003, VS/2003, ASPV 1.1 Page runs a long job, uploading 2 large fixed length files (300,000 rows) into SQL database. A process is run against the data,...
2
by: Jared Hagel | last post by:
I've searched the web for a solution to this problem. Surprisingly, no problem/solution has been posted yet. We can read application configuration information fine when our asp.net application...
5
by: feng | last post by:
Hi, We just converted our VB.Net Windows exe project from VS.Net 2002 to VS.Net 2003 and ran into a problem. the MyApp.exe.config file that we use for our customized configuration settings is...
1
by: Mahesh Devjibhai Dhola | last post by:
Hi, Scenario: The webservice was developed on windows 2000 Pro and deployed previously on windows XP pro for testing. We have tested for many days. The client for that service was 30+ and...
2
by: remya1000 | last post by:
i'm using VB.NET 2003. Last time while i did a program in Vb.Net 2005, i use "Configuration". and i could read and write to that XML configuration file like the example below. CODES:...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
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
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
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...
0
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...

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.