By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,668 Members | 1,606 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,668 IT Pros & Developers. It's quick & easy.

Resource only dll?

P: n/a
I'd like to create a package of XML/XSD files in a resource only dll, anyone
have a link for an example showing how to do this in .NET and then load and
reference it in C#?

Thanks in advance!

Derrick
Nov 15 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Create a "Class Library" project. Remove everything except the
AssemblyInfo.cs file from the project.
Add your XML and XSD files to the project and set their Build Action to
Embedded Resource
Then compile the project and you should have the resource library.

To retrieve the stored resources, you will need to load the assembly with
Assembly.Load or Assembly.LoadFrom and use the Assembly class'
GetManifestResourceStream method.

--
Dmitriy Lapshin [C# / .NET MVP]
X-Unity Test Studio
http://www.x-unity.net/teststudio.aspx
Bring the power of unit testing to VS .NET IDE

"Derrick" <de*********@excite.com> wrote in message
news:uJ*************@TK2MSFTNGP12.phx.gbl...
I'd like to create a package of XML/XSD files in a resource only dll, anyone have a link for an example showing how to do this in .NET and then load and reference it in C#?

Thanks in advance!

Derrick


Nov 15 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.