|
-
Aug 1st, 2003, 12:19 PM
#1
Thread Starter
New Member
App.config overwrites exe.config
Hi,
I am developing an application from VS.Net 2003.
I have found that if I read and write user settings to the exe.config file located in the bin, it gets overwritten by the contents of app.config when I start the application and stop the application.
Because of this I started writing and reading the app.config but find that this is an incorrect approach as the app.config is used only when I run the application from VS.Net 2003.
What is the solution to this problems.... what I thought of is this-
write some code that will check if the app was run from Vs.Net and if so, write and read from app.config....otherwise write and read from exe.config in bin folder.
Any suggestions are greatly appreciated.
-
Aug 1st, 2003, 01:18 PM
#2
When you compile your project the app.config file used in your project overwrites the one in the bin, this is intended behavior to carry over any changes. This only matters during development since the normal users of your app wont be compiling it. If you want a test exe then just copy the needed exe and app.config file to another directory and use those.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|