【发布时间】:2021-03-01 10:08:18
【问题描述】:
严重性代码描述项目文件行抑制状态 错误
CS1061“IApplicationBuilder”不包含“UseCookieAuthentication”的定义,并且找不到接受“IApplicationBuilder”类型的第一个参数的可访问扩展方法“UseCookieAuthentication”(您是否缺少 using 指令或程序集引用?) IdentityServer C:\ Users\A01\source\repos\Identity provider\src\IdentityServerAspNetIdentity\Startup.cs 189 活动
【问题讨论】:
-
你能发布你的整个startup.cs文件代码吗?它将澄清您的问题。
-
嗨@EsraAlshafi,关于这个案例的任何更新?如果答案可以帮助解决问题,请接受 - 见What should I do when someone answers my question?
标签: cookies asp.net-core-mvc .net-5 asp.net-core-5.0