添加对System.IdentityModel.Tokens DLL的引用 [英] Add a reference to the System.IdentityModel.Tokens DLL

查看:263
本文介绍了添加对System.IdentityModel.Tokens DLL的引用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何添加对System.IdentityModel.Tokens dll的引用?

How do I add a reference to the System.IdentityModel.Tokens dll?

它似乎没有出现在Nuget软件包管理器中。

It does not seem to come up in the Nuget Package Manager.

是否需要下载DLL?

我已经安装了.Net 4.5。

I have .Net 4.5 installed.

如果没有引用,以下代码将无法编译:

The following code will not compile without the reference:

SessionSecurityToken sst = e.SessionToken;


推荐答案

它确实存在于NuGet上,并于2013年发布-02-08,所以我不明白为什么您找不到它。尝试搜索 System.IdentityModel.Tokens.ValidatingIssuerNameRegistry
最好的方法是使用NuGet数据包管理器进行安装。

It does exist on NuGet, and was last published 2013-02-08, so I don't understand why you couldn't find it. Try searching for System.IdentityModel.Tokens.ValidatingIssuerNameRegistry. The best way is to install it is using the NuGet packet manager.

您可以在此处找到软件包:
https://www.nuget.org/packages/System.IdentityModel.Tokens.ValidatingIssuerNameRegistry/4.5 .0

You can find the package here: https://www.nuget.org/packages/System.IdentityModel.Tokens.ValidatingIssuerNameRegistry/4.5.0

这篇关于添加对System.IdentityModel.Tokens DLL的引用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆