Thanks for your reply!
I tried exactly what you said but I still couldn't get the
VS.Net 2003 to copy and rename my App.config file into my
bin directory. When adding the config file to the project,
I tried all 4 types of "Build Action" but none of those
worked. After rebuilding the solution, the config file
never get generited in the project's bin directory. The
only way to make the code work is to menully copy the file
into bin AFTER rebuilding (copy file before rebuilding
won't work because rebuilding will remove it from bin) and
properly rename it.
What am I doing wrong here?
Thanks again.
feng
-----Original Message-----
* "feng" <an*******@discussions.microsoft.com> scripsit: We just converted our VB.Net Windows exe project from
VS.Net 2002 to VS.Net 2003 and ran into a problem. the
MyApp.exe.config file that we use for our customized
configuration settings is removed when the conversion
is done. It won't work even if I menully copy the file
back. The settings are not get recogenized. What's going on?
Change the file name to "App.config" and put it into the
project'ssource code directory. Then add the file to the
project. VS.NET 2003will copy the file to the "bin" directory automatically
when buildingthe solution and rename it appropriately.
--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
.