簡體   English   中英

引用SQLite的Project.json

[英]Project.json referencing SQLite

我想將一個單元測試項目轉換為使用項目文件的json格式。 單元測試使用NHibernateSQLite執行。 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文件夾中。

我該如何工作? 完整的資料可以在這里找到

在Package Manager控制台中運行

PM> Update-Package -reinstall System.Data.SQLite.Core

有關詳細信息,請參見此鏈接

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM