Comments
1 comment
-
The .NET version detection hinges on the version of the referenced mscorlib.
case "2.0.5.0": Token targetFrameworkVersionAttribute = FindAttributeByFullName("[mscorlib]System.Runtime.Versioning.TargetFrameworkAttribute");
if (targetFrameworkVersionAttribute.IsEmpty)
{
clrVersion = CLRVersion.SilverlightV2or3;
}
else
{
clrVersion = CLRVersion.SilverlightV4;
}
Would you try opening your assembly up in .NET Reflector (you can download a free 14 day trial version from our website - www.red-gate.com) and check the mscorlib and TargetFramework attribute (use search to find the latter). If mscorlib reference is version 2.0.5.0 and the TargetFramework attribute doesn't exist, SA thinks it's silverlight. We are also aware that some assemblies can have two references to mscorlib as well which can cause problems. Make sure you are referencing Microsoft.CSharp.dll of version 4.0.0.0 and not 2.0.5.0 which would account for the mscorlib of Silverlight.
Add comment
Please sign in to leave a comment.
Any help would be appreciated. Thanks!