Dotfuscator CE Build Error:未找到外部类型System.Windows.Input.ICommand,PresentationCore

Ker*_*fel 5 dotfuscator icommand

我有一个针对.NET Framework 4.0的应用程序.它构建并运行良好,但我无法在Dotfuscator CE中编译它们,因为它是CE,所以它们不支持它.我被卡住了.

使用Visual Studio 2010 SP1的Dotfuscator CE(v5.0.2500.0).这是错误:

Resolving method references...
External type not found System.Windows.Input.ICommand,PresentationCore, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35.
Build Error.
Run Code Online (Sandbox Code Playgroud)

问题似乎源于Microsoft将ICommand从NET 4.0中的PresentationCore.dll更改为.NET 4.5中的System.dll.Studio处理此问题并编译正常,因为我的目标是.NET 4.0.

Dotfuscator CE不处理它,我不知道如何纠正这个问题.任何帮助将不胜感激.

小智 3

  1. 找到.NET4的PresentationCore.dll的路径,如C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework.NETFramework\v4.0
  2. 在Dotfuscator的设置选项卡上->用户定义的程序集加载路径;
  3. 将PresentationCore.dll的路径添加到路径列表中,并首先选中“搜索”。

希望它对你有用。