Dotfuscator use for .net4.0 error solve

在混淆的时候报错了,错误描述大致如下:

Could not find a compatible version of ildasm to run on assembly C:xxx.dll This assembly was originally built with .NET Framework v4.0.30319

 

要混淆不同的.Net Framework版本需要在Settings,Project Properties,添加配置如下。

其中ILASM和ILDASM后面必需要加上对应版本的版本号,然后文件引用对应的版本文件即可。

 

ILASM_v4.0.30319

C:WindowsMicrosoft.NETFrameworkv4.0.30319ilasm.exe

 

ILDASM_v4.0.30319

C:Program FilesMicrosoft SDKsWindowsv8.0AinNETFX 4.0 Toolsildasm.exe

 

如图:

 

 

原文地址:https://www.cnblogs.com/gosteps/p/3916430.html