在混淆的時候報錯了,錯誤描述大體以下:ui
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.30319blog
要混淆不一樣的.Net Framework版本須要在Settings,Project Properties,添加配置以下。v8
其中ILASM和ILDASM後面必須要加上對應版本的版本號,而後文件引用對應的版本文件便可。it
ILASM_v4.0.30319
C:\Windows\Microsoft.NET\Framework\v4.0.30319\ilasm.exeio
ILDASM_v4.0.30319
C:\Program Files\Microsoft SDKs\Windows\v8.0A\bin\NETFX 4.0 Tools\ildasm.exeasm
如圖:
配置