Application Config File is deleted when I debug.

When I compile my Windows applicaiton, the config file is deleted.
I followed the same procedure to add the config files as I did in VS .Net 1.0, but in 1.1 the file is deleted when I debug.

Has anyone else seen this


Answer this question

Application Config File is deleted when I debug.

  • Chazoo

    I believe the procedure in VS 2003 is to delete your "yourapp.exe.config" file from the output directory and then copy file named exactly "App.config" to the output directory renaming it as "yourapp.exe.config".  I believe it goes through these steps even if you don't have an "App.config" file.  So if you don't want it do delete your config file then put it in the root directory of your project and name it "App.config".

    HTH

  • Tim Schmidt

    That worked....
     In the past I had added the bin folder to the project and manually added the appname.exe.config file to the folder.  This didn't seem to cause a problem.

    I can't remember where I picked up this technique.

    Thanks for the help.

  • Ken Maier

    The file that is output is deleted (appname.exe.config)   Or the file you see in the IDE called App.Config
  • Application Config File is deleted when I debug.