The Daily Dump

June 01, 2005

.NET

app.config

You learn something new every day. I've always put the config files for my console and windows applications in the "bin/Debug" directory. It's ugly, but it's always worked for me -- up until today. For some reason, with a brand new project, my config file disappeared every time I did a build. I didn't solve that problem, but I did find out that if you put the config file in the project folder instead and call it "app.config", VS.NET is nice enough to copy it to the "bin/Debug" folder for you and rename it correctly when you build. I suspect the "bug" is related to the "feature" but I'm happy now that everything works again -- and better than before.

Posted by Adam Boddington at 09:17 AM | Comments (0)

Comments

Post a comment




Remember Me?

(you may use HTML tags for style)