Configuration Files, oh how I hate thee!

So if you been trying to use a Custom Configuration file (like that of app.config), without using the existing app.Config; here’s how:

AppDomain.CurrentDomain.SetData(“APP_CONFIG_FILE”, System.Environment.CurrentDirectory.ToString() + “\MiniLogger.config”)

Yip, its that simple. This will now be accessible right through for your entire Project.

If you struggle to figure out where to put it, the Constructor sounds like a good place to me đŸ˜‰

Don't be shellfish...Share on FacebookShare on Google+Tweet about this on TwitterShare on LinkedInShare on TumblrEmail this to someone

Leave a Reply