找不到Microsot.IdentityModel.dll [英] Cannot find Microsot.IdentityModel.dll

查看:92
本文介绍了找不到Microsot.IdentityModel.dll的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我成功安装了WIF运行时和WIF SDK。

如果我在Web.config中添加对Microsoft.IdentityModel.dll的引用,如下所示,它可以工作。

< section name =" microsoft.identityModel" type =" Microsoft.IdentityModel.Configuration.MicrosoftIdentityModelSection,Microsoft.IdentityModel,Version = 3.5.0.0,Culture = neutral,PublicKeyToken = 31bf3856ad364e35" />

现在我要添加在类库类的项目中引用它。我右键单击并单击"添加引用"。但我没有在.NET选项卡中看到Microsoft.IdentityModel.dll。

如何添加引用?


MP

I installed WIF run-time and WIF SDK successfully.

If I add reference to Microsoft.IdentityModel.dll in Web.config as shown below, it work.

<section name="microsoft.identityModel" type="Microsoft.IdentityModel.Configuration.MicrosoftIdentityModelSection, Microsoft.IdentityModel, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>

Now I want to add reference to it in a project of type class library. I right click and click 'Add Reference". But I don't see Microsoft.IdentityModel.dll in .NET tab.

How can I add reference?


MP

推荐答案

在Visual Studio之后安装了哪些版本的WIF和Visual Studio并安装了WIF? 如果在VS之前安装了WIF SDK,则最快的修复方法是卸载并重新安装SDK,以便能够看到VS已安装。

有一个已知的问题,Microsoft.IdentityModel.dll没有出现在VS 2010的.NET选项卡。 解决方法是浏览到%ProgramFiles%\ReferenceAssemblies \ Windows Identity Foundation \v3.5并选择dll。
Which versions of WIF and Visual Studio and was WIF installed after Visual Studio?  If the WIF SDK was installed before VS, the quickest fix is uninstall and reinstall the SDK so that it's able to see VS is installed.

There's a known issue with Microsoft.IdentityModel.dll not appearing in the .NET tab of VS 2010.  Workaround is to browse to %ProgramFiles%\ReferenceAssemblies\Windows Identity Foundation\v3.5 and select the dll.


这篇关于找不到Microsot.IdentityModel.dll的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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