Embedding XML file

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.
 
B

b0yce

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top