c# - 使用以下命名空间 Microsoft.IdentityModel.Clients.ActiveDirectory 时出现问题

标签 c# .net azure active-directory identity-management

尝试加载以下命名空间时出现以下错误

Microsoft.IdentityModel.Clients.ActiveDirectory

Error - The type or namespace IdentityModel does not exist in the namespace Microsoft.

在 .NET Framework 4.6 上运行。

Microsoft.IdentityModel.Clients.ActiveDirectory v3.19.2 包

最佳答案

尝试安装Microsoft.Identity.Client软件包版本4.47.2在 Visual Studio 2019 中,使用下面所示的工具下的 nuget 包管理器和 Microsoft.IdentityModel.Clients.ActiveDirectorydeprecated :

enter image description here

安装包并在控制台输出中检查是否安装成功,如下所示:

enter image description here

现在,我们可以在代码中使用该包。

关于c# - 使用以下命名空间 Microsoft.IdentityModel.Clients.ActiveDirectory 时出现问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/74176113/

相关文章:

azure - Microsoft Azure 信息保护中是否有一次性密码选项?

c# - 设计 .Net 框架应用程序的技巧

C# 计算LRC(纵向冗余检查)

c# - 我需要显示我的 ListViewItems 的整个文本(未截断)

c# - 不能将类型 void 隐式转换为对象。 .NET MVC 部分 View 结果

c# - 为什么我的模型属性在尝试 POST 时为空?

c# - ASP.net 页面中的“System.Threading.ThreadAbortException”

c# - .NET 中 SerialPort 类的问题

Azure 传统负载均衡器 VS Azure 应用程序网关响应延迟?

.net - Azure Service Fabric 使用 log4net 将日志记录到 AppInsights 中