Geeks With Blogs
Beluga Consultancy

The App.Config file can be created by changing the Project, Properties..., Settings.

Sometimes the App.Config file seems to bear no resemblance to what is in the settings.

Deleting the App.Config file and adding an empty one does not cause the settings to disappear nor does the App.Config file get automatically regenerated.

To regenerate the App.Config file from the settings one of the settings needs to be changed and the project then needs to be rebuilt.

The best approach I have found is to:

  • Delete App.Config
  • Add New App.config
  • Go to Project, Properties..., Settings and change one setting
  • Rebuild project


Project will now have an App.Config file which reflects the Project, Properties..., Settings


A good post on Settings is

Posted on Monday, March 1, 2010 7:26 PM | Back to top

Comments on this post: Setting App.Config attributes at Design Time in C#

No comments posted yet.
Your comment:
 (will show your gravatar)

Copyright © BelugaNeil | Powered by: