App.Config Magic

By Roy Osherove In .Net Original, Tips & Tricks

Markdown version

Historical article · Originally published February 22, 2003; technical details may be outdated.

Here's another tidbit i found:

If i want my application to have a config file, i need to create a file named .config in the output directory. but here's a nice touch you can do with VS.NET:

click "Add Item" button, and select "XML File". Make you sure you name the new file "App.Config". The item will be placed in your project directory. But now, when you build the application, VS.NET will automatically copy the file with the appropriate name to where it's supposed to be (your debug or release directory) without you having to worry about it anymore.

grand.

More in .Net Original

All posts in .Net Original