config file automatically deleted!

  • Thread starter Thread starter Lei Jiang
  • Start date Start date
L

Lei Jiang

I created a WinForms app (MyApp.exe), and created a config
file(MyApp.exe.config) in it's output directory. However, whenever the build
finished, the config file is deleted automatically!!! Besides, anyother
*.config files in the output directory (there are several projects that
share the same output directory) is also deleted!

Has anyone encounter the same problem?
 
hi .. yes this was posted to another group.. heres the solution given.
i gues u must be using VS 2003.
quote
"Your config file should be included as a file *within* your project and
should be named "app.config". VS will rename it and store it in the correct
output directory at build time.
-- Alan" &quote
 
Back
Top