Can I use code to load a stream of my choosing into an assembly's manifestresourcestream?
<p>I'm calling a library in a separate appdomain (this library has a memory leak and this was the way I solved it). The library has an option to either specify the  manifest resource name for the file it needs or else specify a file path.</p>

<p>Up until now, I've just passed the file path string from the main appdomain where my program is to the sandboxed library appdomain. However, I want to move to using embedded resources instead so I don't have to make sure to include all these files and send them to their proper directories in the installer project.</p>

<p>Of course, the library is looking in the assembly that's running it (the sandbox appdomain) for the embedded resources. I need to know if there's a way to add resources to the mainfestResourceStream at runtime. If there is, I could just pass a stream object across appdomains, add it to the resource stream, then call the library.</p>

<p>So, is it possible to add resources at runtime to an assemblys manifestResourceStream?</p>

<p>Thanks!</p>
