Obfuscate Portable Class Library in SmartAssembly

479 Views Asked by At

I have created portable class library with following configuration: enter image description here

After this I have added my library into SmartAssebly 6.8, and try to build, but following error occured: enter image description here

How to avoid this? I see that SA found right mscorelib.dll, but why it need System.Console?

1

There are 1 best solutions below

0
On

It's most likely an issue with SmartAssembly. I'd contact their customer service.

Depending on the selected platforms, Portable Class Libraries expose different assemblies. In many cases, tools like SmartAssembly that inspect or rewrite the assemblies make hard coded assumptions about the assembly identities types are declared in. In the past, that often worked because those assumptions matched the reality by happenstance.

The correct way would be to resolve types against the same set of assemblies the IDE/the compilers are referencing.