Configuration file problem

D

Dino L.

Hi,

I have a problem with my conf file called oki_sifrarnik.exe.config. With
Visaul Studio .NET (.NET framework 1.0) it was OK. Conf file is in
\bin\Debug , where my .exe is.

Now I have MS Visual Studio 2003, and (during compile time) VS deletes
conf file?!?
If I just run my oki_sifrarnik.exe , it works fine (reads conf file) ,
but if I compile form VS .NET 2003, conf file is deleted?!?

Any ideas?!?
 
G

Glenn Wilson

Remember that the file needs to be added to the project. as app.config then
when you compile the VS Application copies and renames the file to the end
product <Application name>.exe.config
 
D

Dino L.

Glenn said:
Remember that the file needs to be added to the project. as app.config then
when you compile the VS Application copies and renames the file to the end
product <Application name>.exe.config
How can I add file as app.config file?
 
D

Dino L.

Glenn said:
Remember that the file needs to be added to the project. as app.config then
when you compile the VS Application copies and renames the file to the end
product <Application name>.exe.config
It works . Thanks
 

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

Top