
Problem with config files in VB.NET 2003
Arthur,
Thanks for the info. Seems the Q313405 article is indeed wrong.
The correct procedure is to add the file 'App.config' to the project (the
name of the file is important!) and then Visual Studio will indeed copy this
to yourapp.exe.config in the bin dir.
regards,
Stefan
Quote:
> before compile.
> Add config file to your project.
> It will be automaticly renamed yourapp.exe.config and placed into bin dir.
> do you need step by step instructions?
> > Hi,
> > I'm currently developping an application in VB that uses application
> > configuration files. I think there is a bug in the environment however
> > since my config file disappears at compile time.
> > I tried the following :
> > - used Visual Studio .NET (original version) and followed the
> > instructions in Q313405 : this worked fine
> > - upgraded the ConConfig project to Visual Studio .NET 2003 : at
> > compile time my .config file just disappears (seems the Bin folder is
> > emptied before compilation)
> > Does anyone have any suggestions on how to circumvent this bug? I
> > could do this with a post-build step, but it seems that does not exist
> > for VB.
> > regards,
> > Stefan Cuypers