views:

502

answers:

3

How can I create the app.config file programatically on Application startup (if the file doesnot exist)?

+1  A: 

Since that file is just standard XML, you could just use XmlTextWriter to create it.

Josip Medved
A: 

I'm not sure, but it's it more appropriate to make your program handle that exception and then use default-values unless there is an app.config?

BerggreenDK
A: 
Richard