J
J.Marsch
Building a large app where we want to be able to ship updated icons like
patches/assign different "skins", etc.
So, I'm looking at storing sets of related icons in assemblies that will be
loaded dynamically.
Some questions:
What's the "best practices" way to load an assembly where its only purpose
is to provide resources?
In my simplistic view, I would just do something like this:
{
Assembly theAssembly = Assembly.LoadFile(theFileName);
Image theImage =
Image.FromStream(theAssembly.GetManifestResourceStream(resourceID));
}
Now, I'm not looking for the "quick fix" here, this needs to be durable and
enterprise-grade. Is there somewhere else that I should be looking?
I thought about the resource manager, but it seems to be all about
internationalization, and that's not really what I'm trying to solve here.
patches/assign different "skins", etc.
So, I'm looking at storing sets of related icons in assemblies that will be
loaded dynamically.
Some questions:
What's the "best practices" way to load an assembly where its only purpose
is to provide resources?
In my simplistic view, I would just do something like this:
{
Assembly theAssembly = Assembly.LoadFile(theFileName);
Image theImage =
Image.FromStream(theAssembly.GetManifestResourceStream(resourceID));
}
Now, I'm not looking for the "quick fix" here, this needs to be durable and
enterprise-grade. Is there somewhere else that I should be looking?
I thought about the resource manager, but it seems to be all about
internationalization, and that's not really what I'm trying to solve here.