The type 'System.Windows.Input.ICommand' exists in both 'PresentationCore.dll' and 'System.dll'

后端 未结 4 696
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-20 07:32

I\'ve got this error that I just can\'t figure out.

I\'m using VS 2012 (VS11) on Windows 8 with .net4.5 and I get this error when compiling a project that worked wit

4条回答
  •  长情又很酷
    2021-01-20 08:10

    I had a similar problem with fxcopcmd V12. I was able to solve it by explicitly adding

    /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\WindowsBase.dll"
    

    See: FxCop engine exception on WPF assembly

提交回复
热议问题