Codedom and resources files
Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance
Hello,
I built a code generator that builds an assembly composed of several
classes. These classes are written in VB.NET. But these classes must use an
XML file. It contains some information to configure the behavior of classes
in the assembly. So I want to add this XML file as a resource for this
assembly. I use Codedom to generate my assembly. I want someone tells me how
or point me to a Web site that explains how to add a file as a resource
during compilation of the assembly.
Thank you
.
Relevant Pages
- Re: I need to LoadString() programmatically based on ID not Value
... And why can't the XML file be put into the resource segment? ... I often wish MFC had the option to use RESX files like .NET has. ... If you want to convert a text string into a number you'd have to ... (microsoft.public.vc.mfc) - Re: Codedom and resources files
... I built a code generator that builds an assembly composed of several ... So I want to add this XML file as a resource for this ... You need to pass a CompilerParameters object to your provider when you ... (microsoft.public.dotnet.languages.vb) - Re: How to load xml resource file under a folder in a .Net project
... It uses the folder name as prefix of the ... > If my xml resource file is directly under my project file, ... > to load that xml file via Assembly.GetManifestResourceStream. ... > cannot load that xml file via Assembly.GetManifestResourceStream. ... (microsoft.public.dotnet.general) - Re: Resource file question!
... I have a XML file called test.xml file in resource and I would like ... I don't recall the specifics off the top of my head, but it should be possible to get a MemoryStream from a binary resource. ... So if you just treat the XML file resource as a binary resource, you should be able to wrap that in a MemoryStream and then just read it normally as a regular stream. ... Then use the GzipStream class to decompress it when you are reading the file. ... (microsoft.public.dotnet.languages.csharp) - Re: Resource file question!
... I have a XML file called test.xml file in resource and I would like ... possible to get a MemoryStream from a binary resource. ... reading the file (basically you'll point the GzipStream to the ... (microsoft.public.dotnet.languages.csharp) |
|