使用带有ServiceStack.Client包v.4.0.3的VS2013缺少命名空间ServiceClient(ServiceStack.ServiceClient.Web)

 弍大爺 发布于 2023-02-12 18:49

我是C#,Visual Studio的新手,对ServiceStack来说还是全新的.我正在尝试创建一个ServiceStack.ServiceClient.Web.JsonServiceClient对象,但是我收到错误:

The type or namespace name 'ServiceClient' does not exist in the namespace
'ServiceStack' (are you missing an assembly reference?)

我使用了nuGet附加组件的库包管理器来安装"服务客户端for ServiceStack"v4.0.3包(id:ServiceStack.Client),验证我的目标framerwork是".NET Framework 4.5",并包含在内

using ServiceStack.ServiceClient.Web;

在我的代码顶部.我错过了什么?

谢谢.

1 个回答
  • 您正在使用刚刚发布的ServiceStack v4,这是一个具有重大变化的突发版本,需要额外的开发工作才能升级到.

    以下是NuGet保留在ServiceStack V3上的说明.

    2023-02-12 18:52 回答
撰写答案
今天,你开发时遇到什么问题呢?
立即提问
热门标签
PHP1.CN | 中国最专业的PHP中文社区 | PNG素材下载 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有