How to distinguish assemblies built for Silverlight or for the .NET Framework?
After a quietly July, with August we will start again being active on our blog J.
On the events side August has also a lot to offer:
I found a nice tool published by Ashish Shetty which can be used to detect whether an assembly was built for Silverlight or for .NET Framework.
What the tool does is looking into the list of referenced assemblies of the specified assembly, locate the mscorlib.dll and check the public key token. If you try to open a Silverlight assembly with ILDasm.exe and you have a look at its manifest, you will see that the public key token of the referenced mscorlib is 7CEC85D7BEA7798E.
In case of a normal .NET assembly the public key token will instead be B77A5C561934E089
That's exactly what the tool does!