加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

c# – ASP.NET vnext和ServiceStack.redis

发布时间:2020-12-15 22:13:48 所属栏目:百科 来源:网络整理
导读:有没有人让ServiceStack.redis在asp.net vnext中工作? 我将这些依赖项添加到project.json: "ServiceStack.Common.Signed": "4.0.40","ServiceStack.Interfaces": "4.0.40","ServiceStack.Redis.Signed": "4.0.40","ServiceStack.Text.Signed": "4.0.40" dn
有没有人让ServiceStack.redis在asp.net vnext中工作?
我将这些依赖项添加到project.json:

"ServiceStack.Common.Signed": "4.0.40","ServiceStack.Interfaces": "4.0.40","ServiceStack.Redis.Signed": "4.0.40","ServiceStack.Text.Signed": "4.0.40"

dnu restore成功安装了软件包,但是当我尝试在Visual Studio Code(OS X)中编译我的代码时,我得到:“找不到类型或命名空间’ServiceStack’……”

来自dnvm列表:

Active Version              Runtime Arch Location             Alias
------ -------              ------- ---- --------             -----
       1.0.0-beta4          mono         ~/.dnx/runtimes
       1.0.0-beta5-11497    mono         ~/.dnx/runtimes
  *    1.0.0-beta5-11672    mono         ~/.dnx/runtimes      default
       dnx-mono             mono         ~/.dnx/runtimes

解决方法

这个由这个nuget解决:
https://www.nuget.org/packages/ServiceStack.Redis.Core/

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读