Welcome to MSDN Blogs Sign in | Join | Help

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.

 image

In case of a normal .NET assembly the public key token will instead be B77A5C561934E089

image 

That's exactly what the tool does!

Published Monday, August 04, 2008 8:00 PM by kcasada
Filed under:

Comments

# a-foton » How to distinguish assemblies built for Silverlight or for the .NET Framework?

# Silverlight Cream for August 10, 2008 -- #343

Michael Washington with an add-on for SL Desktop already, Mike Snow beginning Terrain tutorials and applying

Sunday, August 10, 2008 9:14 PM by Community Blogs
Anonymous comments are disabled
 
Page view tracker