首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在添加signalR之后,asp.net在本地构建得很好,但在devops上构建失败

问在添加signalR之后,asp.net在本地构建得很好,但在devops上构建失败
EN

Stack Overflow用户
提问于 2020-04-26 20:09:55
回答 1查看 91关注 0票数 0

我得到的错误。

type=Error;sourcepath=D:\a\1\s\Hubs\FiscalAttestsHub.cs;linenumber=9;columnnumber=24;code=CS0234;The :命名空间“”Microsoft.AspNet“”中不存在vsotask.logissue Microsoft.AspNet类型或命名空间名称“”SignalR“”(是否缺少程序集引用?)“”Hubs\FiscalAttestsHub.cs(9,24):错误CS0234:类型或命名空间名称'SignalR‘在命名空间'Microsoft.AspNet’中不存在(是否缺少程序集引用?)D:\a\1\s.csproj

error\Startup.cs(2,24):错误CS0234:类型或命名空间名称'SignalR‘在命名空间'Microsoft.AspNet’中不存在(是否缺少程序集引用?)

type=Error;sourcepath=D:\a\1\s\Startup.cs;linenumber=2;columnnumber=24;code=CS0234;The :命名空间“”Microsoft.AspNet“”中不存在vsotask.logissue Microsoft.AspNet类型或命名空间名称“”SignalR“”(是否缺少程序集引用?)“”Startup.cs(2,24):错误CS0234:类型或命名空间名称'SignalR‘在命名空间'Microsoft.AspNet’中不存在(是否缺少程序集引用?)D:\a\1\s.csproj

error\Hubs\FiscalAttestsHub.cs(14,37):错误CS0246:找不到类型或命名空间名称'Hub<>‘(是否缺少using指令或程序集引用?)

using :未能找到type=Error;sourcepath=D:\a\1\s\Hubs\FiscalAttestsHub.cs;linenumber=14;columnnumber=37;code=CS0246;The类型或命名空间名称“”debugProcessed“”(是否缺少vsotask.logissue指令或程序集引用?)“”Hubs\FiscalAttestsHub.cs(14,37):错误CS0246:找不到类型或命名空间名称'Hub<>‘(是否缺少using指令或程序集引用?)D:\a\1\s.csproj

warning\Mail\Models\PaymentReceivedMM.cs(100,23):警告名称:“”PaymentReceivedMM.TenantName“”隐藏继承的成员“”MailModel.TenantName“”。“”如果有意隐藏,请使用new关键字。

MailModel.TenantName: vsotask.logissue MailModel.TenantName隐藏继承的成员。如果有意隐藏,请使用new关键字。Mail\Models\PaymentReceivedMM.cs(100,23):警告CS0108:“”PaymentReceivedMM.TenantName“”隐藏继承的成员“”MailModel.TenantName“”。“”如果有意隐藏,请使用new关键字。D:\a\1\s.csproj

error\Controllers\Identity\AccountController.cs(59,17):错误CS0246:未能找到类型或命名空间名称“IAuthenticationManager”(是否缺少using指令或程序集引用?)

using :未能找到type=Error;sourcepath=D:\a\1\s\Controllers\Identity\AccountController.cs;linenumber=59;columnnumber=17;code=CS0246;The类型或命名空间名称“”debugProcessed“”(是否缺少vsotask.logissue指令或程序集引用?)“”Controllers\Identity\AccountController.cs(59,17):错误CS0246:未能找到类型或命名空间名称“IAuthenticationManager”(是否缺少using指令或程序集引用?)D:\a\1\s.csproj

error\Controllers\Identity\ManageController.cs(72,17):错误CS0246:未能找到类型或命名空间名称“IAuthenticationManager”(是否缺少using指令或程序集引用?)

using :未能找到type=Error;sourcepath=D:\a\1\s\Controllers\Identity\ManageController.cs;linenumber=72;columnnumber=17;code=CS0246;The类型或命名空间名称“”debugProcessed“”(是否缺少vsotask.logissue指令或程序集引用?)“”Controllers\Identity\ManageController.cs(72,17):错误CS0246:未能找到类型或命名空间名称“IAuthenticationManager”(是否缺少using指令或程序集引用?)D:\a\1\s.csproj

error\Models\Identity\AppRoleManager.cs(16,61):错误CS0246:未能找到类型或命名空间名称“IOwinContext”(是否缺少using指令或程序集引用?)

using :未能找到type=Error;sourcepath=D:\a\1\s\Models\Identity\AppRoleManager.cs;linenumber=16;columnnumber=61;code=CS0246;The类型或命名空间名称“”debugProcessed“”(是否缺少vsotask.logissue指令或程序集引用?)“”Models\Identity\AppRoleManager.cs(16,61):错误CS0246:找不到类型或命名空间名称'IOwinContext‘(是否缺少using指令或程序集引用?)D:\a\1\s.csproj

error\Models\Identity\AppSigninManager.cs(21,97):错误CS0246:未能找到类型或命名空间名称“IOwinContext”(是否缺少using指令或程序集引用?)

using :未能找到type=Error;sourcepath=D:\a\1\s\Models\Identity\AppSigninManager.cs;linenumber=21;columnnumber=97;code=CS0246;The类型或命名空间名称“”debugProcessed“”(是否缺少vsotask.logissue指令或程序集引用?)“”Models\Identity\AppSigninManager.cs(21,97):错误CS0246:找不到类型或命名空间名称'IOwinContext‘(是否缺少using指令或程序集引用?)D:\a\1\s.csproj

error\Models\Identity\AppSigninManager.cs(13,61):错误CS0246:未能找到类型或命名空间名称“IAuthenticationManager”(是否缺少using指令或程序集引用?)

using :未能找到type=Error;sourcepath=D:\a\1\s\Models\Identity\AppSigninManager.cs;linenumber=13;columnnumber=61;code=CS0246;The类型或命名空间名称“”debugProcessed“”(是否缺少vsotask.logissue指令或程序集引用?)“”Models\Identity\AppSigninManager.cs(13,61):错误CS0246:找不到类型或命名空间名称“IAuthenticationManager”(是否缺少using指令或程序集引用?)D:\a\1\s.csproj

error\Models\Identity\AppUserManager.cs(24,93):错误CS0246:未能找到类型或命名空间名称“IOwinContext”(是否缺少using指令或程序集引用?)

using :未能找到type=Error;sourcepath=D:\a\1\s\Models\Identity\AppUserManager.cs;linenumber=24;columnnumber=93;code=CS0246;The类型或命名空间名称“”debugProcessed“”(是否缺少vsotask.logissue指令或程序集引用?)“”Models\Identity\AppUserManager.cs(24,93):错误CS0246:找不到类型或命名空间名称'IOwinContext‘(是否缺少using指令或程序集引用?)D:\a\1\s.csproj

error\Models\Identity\ManageViewModels.cs(37,22):错误CS0246:未能找到类型或命名空间名称“AuthenticationDescription”(是否缺少using指令或程序集引用?)

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2020-04-26 20:51:43

找到问题了。不知何故,signalR包不再在已安装的nugget包列表中,尽管如此,本地构建完全正常,并且也可以运行该应用程序。

解决方案:重新添加nuget包,现在也可以在azure上构建。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/61440523

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档