I created a class library for tests of the ASP.NET MVC VNext project.
In this class library, I use Dapper, so I have project.json:
{ "dependencies": { "xunit": "2.1.0-beta2-*", "xunit.runner.dnx": "2.1.0-beta2-*", "Dapper": "1.42.0" }, "commands": { "test": "xunit.runner.dnx" }, "frameworks": { "dnx451": { "dependencies": { "Dapper": "1.42.0" } }, "dnxcore50": { "dependencies": { "System.Collections": "4.0.10-beta-22816", "System.Linq": "4.0.0-beta-22816", "Microsoft.CSharp": "4.0.0-beta-22816", "Dapper": "1.42.0" } } } }
I keep getting the error:
The type or namespace name 'Dapper' could not be found (are you missing a using directive or an assembly reference?) MvcProj.Test.DNX Core 5.0
How can i fix this?
source share