Given a assembly how do I determine (in code) what version of Silverlight that assembly is compiled against?
So I want a method that does this
public static decimal GetSilverlightVersion(string assemblyPath)
{
Magic goes here
}
and it should return 2.0, 3.0 or 4.0
Note: the executing code is .net 4 not Silverlight