Application Settings

  • Thread starter Thread starter mevar
  • Start date Start date
M

mevar

Hello, I'm using an application file to store my
settings.When I compile the project,Visual studio delete
the xml setting file(myapplicationname.config) from the
directory where it store the executable file.If i copy
the file setting after compile, the application doen't
see the file. It work's only if I manually copy all my
files in an other directory and I run it like a normal
application(unfortunately I can't have the debug
support).Anyone can help me?Thanks a lot
 
mevar said:
Hello, I'm using an application file to store my
settings.When I compile the project,Visual studio delete
the xml setting file(myapplicationname.config) from the
directory where it store the executable file.If i copy
the file setting after compile, the application doen't
see the file. It work's only if I manually copy all my
files in an other directory and I run it like a normal
application(unfortunately I can't have the debug
support).Anyone can help me?Thanks a lot

Hi mevar,

In VS .NET, you should have a file in your project called "app.config". If
it is not there, then create it. When you compile your project, this
app.config file is copied to the output directory as
myapplicationname.exe.config. Make changes only to the app.config file.

Joe
 
-----Original Message-----


Hi mevar,

In VS .NET, you should have a file in your project called "app.config". If
it is not there, then create it. When you compile your project, this
app.config file is copied to the output directory as
myapplicationname.exe.config. Make changes only to the app.config file.

Joe

Thank you.I' ve just tryed your suggestions and
everything work well.Thank you again
 
Back
Top