J
Jay Ayliff
I'm embarrassed to say I asked this before but the original answer scrolled
off the list.
I use configuration files with my VB.NET winforms apps. The application is
configured to find them in the same folder as the executing assembly, and
with the same name, but with '.config' at the end. Trouble is, when you
compile the application it deletes everything that was in the \bin folder,
including the config file. I thought the fix was to include the config file
in the solution, and the compile process will copy the file to the \bin
folder each time. I tried this and the file does not get copied. In the
Properties window for the file there are four options for Compile Action:
None, Compile, Content and Embedded Resource. I find that Compile treats the
file as VB source and throws errors, while the other three do not copy the
file to the \bin folder.
Can anyone tell me what I am doing wrong?
Regards
Jay Ayliff
Stalis Ltd
off the list.
I use configuration files with my VB.NET winforms apps. The application is
configured to find them in the same folder as the executing assembly, and
with the same name, but with '.config' at the end. Trouble is, when you
compile the application it deletes everything that was in the \bin folder,
including the config file. I thought the fix was to include the config file
in the solution, and the compile process will copy the file to the \bin
folder each time. I tried this and the file does not get copied. In the
Properties window for the file there are four options for Compile Action:
None, Compile, Content and Embedded Resource. I find that Compile treats the
file as VB source and throws errors, while the other three do not copy the
file to the \bin folder.
Can anyone tell me what I am doing wrong?
Regards
Jay Ayliff
Stalis Ltd