我想将其中一个单元测试项目转换为使用项目文件的json格式。单元测试使用NHibernate
和SQLite
来执行。 Project.json
文件看起来像这样,
{
"version": "1.0.0-*",
"compilationOptions": {
"emitEntryPoint": true
},
"dependencies": {
"System.Data.SQLite.Core": "1.0.99",
"NUnit": "3.2.0",
"NUnitLite": "3.2.0",
"NSubstitute": "1.9.2"
},
"runtimes": {
"win": { },
"win-anycpu": {
"#import": [ "win" ]
}
},
"commands": {
"test": "Infrastructure.Test"
},
"frameworks": {
"dnx451": {
"dependencies": {
"Domain": "1.0.0-*",
"Infrastructure": "1.0.0-*"
}
}
},
"exclude": [
],
"publishExclude": [
"**.user",
"**.vspscc"
],
"scripts": {
"prepublish": [ "npm install", "bower install", "gulp clean", "gulp min" ]
}
}
问题是,当我尝试运行它时,我得到异常说Unable to load DLL 'SQLite.Interop.dll':
我认为这是因为包中附带了上述文件的2个不同的x86和x64二进制文件,它们位于build
文件夹。
我如何让这个工作?可以找到完整的来源here
答案 0 :(得分:0)