M
michael sorens
I have created a class library (DLL) that requires a certain XML file in the
same directory as the DLL. This XML file is essentially a configuration or
settings file but I want it to be a separate file from the standard
user.config file. My attempts to do this did not yield what I needed:
(1) I first thought of just using a separate Settings object in my project,
but I observed that that simply inserts a separate section in user.config,
not a separate file as I require.
(2) I next tried just a plain XML file that I could read/write manually. I
could then add a post-build command to copy this file to the bin directory
when I create my DLL. That's fine for building the library itself but if I
add this library into another project as a reference how could I
automatically bring the XML file along as well?
Is there a different (better?) way to do something like this?
same directory as the DLL. This XML file is essentially a configuration or
settings file but I want it to be a separate file from the standard
user.config file. My attempts to do this did not yield what I needed:
(1) I first thought of just using a separate Settings object in my project,
but I observed that that simply inserts a separate section in user.config,
not a separate file as I require.
(2) I next tried just a plain XML file that I could read/write manually. I
could then add a post-build command to copy this file to the bin directory
when I create my DLL. That's fine for building the library itself but if I
add this library into another project as a reference how could I
automatically bring the XML file along as well?
Is there a different (better?) way to do something like this?