I'm attempting to start using VS 2012 instead of VS 2010, but after installing VS 2012 and .Net 4.5. I'm getting code analysis errors in VS 2010 saying The following error was encountered while reading module 'xxx_Accessor': Could not resolve type reference: [System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089] System.Windows.Input.ICommand.
I'm guessing this is related to the fact that .Net 4.5 has moved the location of the ICommand interface, but is there a solution to this so that code analysis will run again? I've tried adding the ignorestrongassemblynames to the project file of the test project and the project under test, but that hasn't worked.
I've had just the same problem, but not with all of the assemblies that reference ICommands, just some.
I removed the reference to PresentationCore, rebuilt and re-added it. The problem went away.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With