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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top