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

时间:2014-01-03 16:31:39

标签: icommand dotfuscator

我有一个针对.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.

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

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

1 个答案:

答案 0 :(得分:2)

  1. 找到.NET4的PresentationCore.dll的路径,例如C:\ Program Files(x86)\ Reference Assemblies \ Microsoft \ Framework.NETFramework \ v4.0
  2. 在Dotfuscator的设置标签上 - >用户定义的装配加载路径;
  3. 将PresentationCore.dll的路径添加到路径列表中,然后选中“首先搜索”。
  4. 希望它适合你。