Roy Osherove

View Original

App.Config Magic

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.