我想要将其中一个单元测试项目转换为使用项目文件的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':我想这是因为上面的文件有两个不同的x86和x64二进制文件,它们位于build文件夹中。
我该如何让它工作呢?完整的源代码可以在here上找到
发布于 2016-03-29 20:46:38
https://stackoverflow.com/questions/36284533
复制相似问题