CS1684 A reference to Type System.Windows.Input.ICommand states that it is defined in 'xxx' but cannot be found

I am trying to start using VS 2012 instead of VS 2010, but after installing VS 2012 and .Net 4.5. I get code analysis errors in VS 2010. Error while reading module "xxx_Accessor": Failed to resolve type reference: [System, Version = 4.0.0.0, Culture = neutral, PublicKeyToken = b77a5c561934e089] System.Windows. Input.ICommand.

I assume that this is because .Net 4.5 has moved the location of the ICommand interface, but is there a solution for this so that the code analysis starts again? I tried to add ignorestrongassembly names to the project file of the test project and the test project, but this did not work.

+5
source share
1 answer

I had the same problem, but not with all assemblies that reference ICommands, only some.

I removed the link to PresentationCore, rebuilt and added again. The problem has disappeared.

+2
source

All Articles