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

后端 未结 4 642
爱一瞬间的悲伤
爱一瞬间的悲伤 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 07:57

    We had the same problem with our libraries after moving to a new build server.

    The solution was to specify the path of the .net framework to build against:

    /p:FrameworkPathOverride="C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0"
    

    If the .net 4.0 framework (Multi-Targeting Pack) is not installed on the build server (as it was with us), you can just copy the "v4.0" folder with all its assemblies to the build server ;)

提交回复
热议问题