添加对System.IdentityModel.Tokens DLL的引用 [英] Add a reference to the 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屋!