Hey Simon, On Thu, Nov 25, 2010 at 1:44 AM, Simon Cropp <[email protected]> wrote: > So I have a few questions > -Given an assembly is it possible to determine if it is a Silverlight > assembly?
It's not easy. Their target runtime in the metadata is Net_2_0. The only difference is the version number of the BCL assemblies that are 2.0.5.0. MonoTouch and MonoDroid assemblies share those characteristics. > -Given an assembly is it possible to determine what version of Silverlight > it is compiled against? Not that I'm aware of. If you have the .xap, you can inspected it to find the runtime version in the xml. > -Should this functionality exist in DefaultAssemblyResolver? I don't think it should. It's extremely specific, and a SilverlightAssemblyResolver would make more sens. > -If I find a solution that does not require the project file should I submit > a patch? We could always see about adding a SilverlightAssemblyResolver to Mono.Cecil.Rocks, but it would have to be implemented for Mono too. A gist would work too. Jb -- -- mono-cecil
