How to distribute an xml file with a dll

  • Thread starter Thread starter Dirk
  • Start date Start date
D

Dirk

I want to distribute an xml file with my dll and to be able to write and
read the xml file when any Windows Forms application uses the dll. What is
the best approach?

Everything I'm reading distributes the xml files with the App (exe). What
are the pitfalls?
 
I solved my problem. Include the xml file as a resource in the
project/properties dialog.

Then

Dim sr As New StringReader(My.Resources.MyXML)

MyDataSet.ReadXml(sr)



At run time I create a copy of the xml file in the current directory and use
that for writing and reading.
 
Back
Top