是否可以在.NET Framework 4.5中使用Owin.Security.OpenIdConnect.Server

问题描述 投票:2回答:1

在4.5框架中使用Owin.Security.OpenIdConnect.Server时遇到以下错误:

错误CS1061:'IAppBuilder'不包含'UseOpenIdConnectServer'的定义,并且没有可访问的扩展方法'UseOpenIdConnectServer'接受类型'IAppBuilder'的第一个参数(你是否缺少using指令或汇编引用?)

任何人都可以建议一种方法来克服这个错误?

owin openid-connect adfs
1个回答
0
投票

如果您使用Owin.Security.OpenIdConnect.Server版本2.00,依赖项是enter image description here

如果您使用的是Owin.Security.OpenIdConnect.Server 1.1.0版,则依赖项为enter image description here

© www.soinside.com 2019 - 2024. All rights reserved.