簡體   English   中英

是否有可與ASP.Net 5一起使用的Lightspeed 5.x NuGet包?

[英]Is there a Lightspeed 5.x NuGet package that can be used with ASP.Net 5?

我在NuGet上搜索過,找不到Lightspeed NuGet包。

我擁有Lightspeed 5的專業版許可證,所以我需要在非ASP.Net 5代碼中使用Lightspeed所需的所有二進制文件。

但是,據我所知,ASP.Net 5不允許您直接引用DLL,您必須先創建一個NuGet包。

因此,我創建了一個包含POCO對象,數據庫上下文和Lightspeed引用的NuGet包,並將其添加到.Net Framework 4.5控制台應用程序中; 它添加了適當的引用(我使用的NuGet規范如下所示)。

<?xml version="1.0"?>
<package >
  <metadata>
    <id>$id$</id>
    <version>$version$</version>
    <title>$id$</title>
    <authors>$author$</authors>
    <owners>$author$</owners>
    <requireLicenseAcceptance>false</requireLicenseAcceptance>
    <description>$description$</description>
    <copyright>Copyright 2015</copyright>
    <references>
      <reference file="$id$.dll" />
      <reference file="Mindscape.LightSpeed.dll" />
      <reference file="Mindscape.LightSpeed.Linq.dll" />
    </references>
  </metadata>
  <files>
    <file src="..\Mindscape.Lightspeed\Mindscape.LightSpeed.dll" target="lib\net45\Mindscape.LightSpeed.dll" />
    <file src="..\Mindscape.Lightspeed\Mindscape.LightSpeed.Linq.dll" target="lib\net45\Mindscape.LightSpeed.Linq.dll" />
  </files>
</package>

但是,當我嘗試將此軟件包添加到我的ASP.Net 5網站(添加的軟件包但使用語句導致編譯器錯誤)時,這沒有按預期工作。

有沒有人知道使用Lightspeed使用ASP.Net 5的解決方法?

理想情況下,Mindscape將發布NuGet包。

結果是你的訂閱的“密鑰”部分列出了他們自己的NuGet提要

暫無
暫無

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

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