473,396 Members | 1,722 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,396 software developers and data experts.

Managing XML Configuration file

OK, so I have a VS.NET VB project that will use an XML file to specify
some configuration properties. The original file is a member of the
project and resides in the project's main folder. Now, when the
application is implemented with a VS setup project, this file will live
in the application folder, c:\program files\MyApplication. So I use an
Application.StartupPath property to locate the file. Now, during
development and testing, the application will be run from either the
bin\Debug folder or the bin\Release folder, so there needs to be copies
of the XML file in those locations. What if you make a change to the
original file's structure? Is there some automatic way this change can
be reflected in the two bin subfolder copies? Sometimes I forget to
copy the file down to the bin folders after making a change and it
naturally causes problems.

Nov 21 '05 #1
1 1290
You can set your Working Directory in the Debug options for the project to
where the XML file resides. (Delete all duplicate versions).

"za***@construction-imaging.com" wrote:
OK, so I have a VS.NET VB project that will use an XML file to specify
some configuration properties. The original file is a member of the
project and resides in the project's main folder. Now, when the
application is implemented with a VS setup project, this file will live
in the application folder, c:\program files\MyApplication. So I use an
Application.StartupPath property to locate the file. Now, during
development and testing, the application will be run from either the
bin\Debug folder or the bin\Release folder, so there needs to be copies
of the XML file in those locations. What if you make a change to the
original file's structure? Is there some automatic way this change can
be reflected in the two bin subfolder copies? Sometimes I forget to
copy the file down to the bin folders after making a change and it
naturally causes problems.

Nov 21 '05 #2

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

Similar topics

1
by: Saradhi | last post by:
I am hosing website using ASP on windows2003 standard server in IIS 6.0 sessions are getting expired immediately. Could any one help me in managing sessions in iis 6.0 and ASP?
7
by: tgh003 | last post by:
I would be interested to hear how others are managing their javascript (.js) files from the original code vs the obfuscated version they publish to their site/webapp. I currently manage 2 files,...
0
by: JD | last post by:
I'm currently writing a class to manage per-user configuration files, using the same format as the app.config file. This will be used in a Winforms app to manage user options, window positions,...
2
by: sqlster | last post by:
We have 3 different environments: dev, qa, and production. After unit testing, the application is deployed to dev for unit testing among the programmers and business analyst. When that is okay it...
1
by: Shane Hathaway | last post by:
Let's talk about the problem I really want help with. I brought up a proposal earlier, but it was only half serious. I realize Python is too sacred to accept such a heretical change. ;-) ...
0
by: marfi95 | last post by:
I have 2 questions. First a little background. I have an app that is used by my entire team to parse files and some other stuff that we normally do during the day. This app is driven very...
4
by: Venkatraman.S. | last post by:
Hi, Am sure many would have stumbled on this situation while developing an application in Python which is highly driven by configuration/ properties. I have an application (obviously written...
12
by: helveticus | last post by:
Because of licensing reasons, I plan on using ASP.NET 3.5 /Access 2K for a specific site.. What tools could I use to remotely manage the Access 2K DB? Would a simple ODBC connection be adequate?...
2
by: Kenneth Roy | last post by:
I have an application using a grid control. I have set up user settings for each column of the grid to enable the user to determine various properties of those columns. For example whether a...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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...
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
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...
0
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,...

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.