name.exe.config is getting killed by 2003?

L

Les Caudle

When I compile my project in VS.NET 2003, the projectName.exe.config file in the
BIN directory is deleted.

This was not the case in VS.NET 2002.

How can I resolve this?
 
N

Nicholas Paldino [.NET/C# MVP]

Les,

Add the config file to your project in VS.NET, and it should be copied
over to the bin directory when you compile.

Hope this helps.
 
I

Ignacio Machin

Hi,

In addition be sure that the Build action ( accesible from the property
window) of the file is Content

Hope this help,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

Nicholas Paldino said:
Les,

Add the config file to your project in VS.NET, and it should be copied
over to the bin directory when you compile.

Hope this helps.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Les Caudle said:
When I compile my project in VS.NET 2003, the projectName.exe.config
file
in the
BIN directory is deleted.

This was not the case in VS.NET 2002.

How can I resolve this?
 
J

Jay B. Harlow [MVP - Outlook]

Ignacio,
If you name the file "app.config" literally "app.config" without the quotes.
VS.NET knows to copy it to the output folder as myproject.exe.config.

Naming it app.config, you leave the build action as None.

app.config is treated special like this in both VS.NET 2002 & VS.NET 2003.

Hope this helps
Jay

Ignacio Machin said:
Hi,

In addition be sure that the Build action ( accesible from the property
window) of the file is Content

Hope this help,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

in message news:[email protected]...
Les,

Add the config file to your project in VS.NET, and it should be copied
over to the bin directory when you compile.

Hope this helps.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Les Caudle said:
When I compile my project in VS.NET 2003, the projectName.exe.config
file
in the
BIN directory is deleted.

This was not the case in VS.NET 2002.

How can I resolve this?
 

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