我为ASP.NET MVC VNext项目的测试创建了一个类库.
在这个类库中,我使用的是Dapper,所以我有了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" } } } }
我一直收到错误:
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
我怎样才能解决这个问题?