Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Crypto Obfuscator showing exception, Could not resolve mscorlib

While obfuscating my WPF C# application, it is showing Exception saying that

Error occurred while obfuscation: System.IO.FileNotFoundException - System.IO.FileNotFoundException: Could not resolve: mscorlib, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e. Specify the path where this assembly resides using 'Search Directories' in the Crypto Obfuscator's Project Properties Dialog (Ctrl+P).

I have also tried adding path to mscorlib.dll file in Search Directories Project Properties Dialog. but it is still showing same exception. any help will be appreciated.

like image 425
Abdul Qadir Memon Avatar asked Sep 01 '25 02:09

Abdul Qadir Memon


1 Answers

When you add directories in Search Directories Project Properties Dialog, do not select:

Only allow same or higher versions when resolving referenced assemblies

like image 52
Pappu Pandit Avatar answered Sep 02 '25 17:09

Pappu Pandit