Embedding XML file

  • Thread starter Thread starter thanigaimani
  • Start date Start date
T

thanigaimani

hi , any one knows how to embedd an XML file into and EXE file?( While
creating exe in Visual Studio.NET). b'cos i have an Application which
uses some XML files. so i need to embed the XML files.
 
As long as you develop in Visual Studio .NET;

Click any file in the project in Solution Explorer window. At the top of the
window there is a "Show All Files Icon". Now as long as you XML File is
located there, it will now appear when you toggle this button to on.

Next step, right-Click on you XML file and select properties. In the
Properties -> Build Action, select the item as *Embedded Resource* et voila!

b0yce
 
Back
Top