I just created a new project in ASP 5 MVC 6 beta8 and a compatible class library for tests. The problem arises in this new Web Class Library project, which I intended to use for tests.
Here is what my project.json looks like:
{ "version": "1.0.0-*", "description": "ClassLibrary1 Class Library", "authors": [ "Me" ], "tags": [ "" ], "projectUrl": "", "licenseUrl": "", "frameworks": { "dnx451": { } }, "dependencies": { "AutoFixture": "3.36.9", "AutoFixture.AutoMoq": "3.36.9", "Moq": "4.2.1510.2205" } }
At compile time, I get the following error:
Severity Code Description Project File Line Source Error NU1001 The dependency moq >= 4.1.1308.2120 could not be resolved. ClassLibrary1 Path\To\My\Solution\ClassLibrary1\project.json 1 Build
Here's what my project links look like:

I think the problem is that AutoFixture.AutoMoq requires Moq in version "4.1.1308.2120" . See .lock.json Project:
"AutoFixture.AutoMoq/3.36.9": { "type": "package", "dependencies": { "autofixture": "3.36.9", "moq": "4.1.1308.2120" }, "compile": { "lib/net40/Ploeh.AutoFixture.AutoMoq.dll": {} }, "runtime": { "lib/net40/Ploeh.AutoFixture.AutoMoq.dll": {} } },
However, the installed version of Moq higher than "4.2.1510.2205" , so according to the error message this should be good, but it is not.
It works fine, although if I refuse Moq to the required version, but I would prefer to use the latest version. I installed the latest nuget package manager, restarted VS and OS, but didn't help.
What can i do with this?
EDIT
I also created a regular class library, installed the dependencies above and tried. The normal class library project is built fine.