Embedding XML in DLL

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Michael Persaud

    #1

    Embedding XML in DLL

    Hi All,

    I was wondering if i can embed an xml file in a vb.net app so that i dont
    have to install it as an external file. if this is possible please let me
    know how to proceed.

    Thanks
    Michael


  • Carlos J. Quintero [.NET MVP]

    #2
    Re: Embedding XML in DLL

    Yes. Just add it to the project and in the Properties Window select Build
    Action = Embedded Resource. To retrieve its stream at run time, you use
    Assembly.GetMan ifestResourceSt ream(). Check the docs about this function.
    --

    Best regards,

    Carlos J. Quintero

    MZ-Tools: Productivity add-ins for Visual Studio .NET, VB6, VB5 and VBA
    You can code, design and document much faster.
    Free resources for add-in developers:
    MZ-Tools has a single goal: To make your everyday programming life easier. As an add-in to several Integrated Development Environment (IDEs) from Microsoft, MZ-Tools adds new menus and toolbars to them that provide many new productivity features.


    "Michael Persaud" <jinxpersaud@ho tmail.com> escribió en el mensaje
    news:OmfnCW2aFH A.2860@TK2MSFTN GP10.phx.gbl...[color=blue]
    > Hi All,
    >
    > I was wondering if i can embed an xml file in a vb.net app so that i dont
    > have to install it as an external file. if this is possible please let me
    > know how to proceed.
    >
    > Thanks
    > Michael
    >
    >[/color]


    Comment

    Working...