name.exe.config is getting killed by 2003?

  • Thread starter Thread starter Les Caudle
  • Start date Start date
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?
 
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.
 
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?
 
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?
 
Back
Top