Microsoft.Sharepoint.IdentityModel.dll在哪里

Nie*_*eAR 8 security gac sharepoint-2010

我正在尝试在SharePoint Foundation 2010项目中使用SPFederationAuthenticationModule类.\我找不到Microsoft.Sharepoint.IdentityModel.dll文件.c:\ windows\assembly中没有一个.帮我!

CBo*_*ono 17

如果您使用的是SharePoint 2010,则这些答案是正确的.

如果需要查找SharePoint 2013的DLL,则需要从此位置引用它: C:\Windows\Microsoft.NET\assembly\GAC_MSIL\Microsoft.SharePoint.IdentityModel\v4.0_15.0.0.0__71e9bce111e9429c\Microsoft.SharePoint.IdentityModel.dll

请注意,在.NET 4.0下,GAC的位置已更改.


小智 7

  1. 启动命令提示符

  2. 写"cd:\ Windows\assembly\GAC_MSIL\Microsoft.SharePoint.IdentityModel\14.0.0.0__71e9bce111e9429c \"

  3. 写"复制Microsoft.SharePoint.IdentityModel.dll c:\"

  4. 现在你可以自由访问dll(例如复制到TFS,用反射器打开或任何其他动作)

另一种选择是在命令提示符中写入"subst i:%windir%\ assembly\gac_msil",这样您就可以通过Windows资源管理器浏览GAC_MSIL(Microsoft.SharePoint.IdentityModel所在的位置).