System.NotSupportedException : Error calculating CLR version
tpope
Posts: 3
Hi,
I'm utilising the SmartAssembly software through Team City and when trying to obfuscate a merged assembly it is failing on one of the included assemblies, namely netchartdir.dll with the following error:
System.NotSupportedException : Error calculating CLR version for module netchartdir.dll
Are you able to give me any pointers how I can resolve this?
Thank you
T
I'm utilising the SmartAssembly software through Team City and when trying to obfuscate a merged assembly it is failing on one of the included assemblies, namely netchartdir.dll with the following error:
System.NotSupportedException : Error calculating CLR version for module netchartdir.dll
Are you able to give me any pointers how I can resolve this?
Thank you
T
Comments
We see this "Error calculating CLR version" problem occuring when the framework references of the dll in question have no specific version numbers, which SmartAssembly cannot handle. You should be able to work around the problem by recreating the dll with versioned references (via ildasm and ilasm similar to here). Or would it be possible for the creator of the assembly to just change the references to versioned framework assemblies?
Thank you for your response, it is much appreciated.
Following the advice you gave I have successfully managed to utilise the netchartdir.dll assembly with SmartAssembly.
Many thanks
T