在哪里可以找到 Visual Studio 中尚未包含的 Microsoft 程序集?
我认为有人可以概括地回答这个问题,但如果有人想具体了解我正在尝试使用:
using System.Web.Security.SingleSignOn; 使用 System.Web.Security.SingleSignOn.Authorization;
我绞尽脑汁,这是我找到的最接近的答案:
“我们离线讨论了这个问题,但看起来 ADFS 程序集已经过 GAC 处理,但是 未安装在文件系统上或向 VS.NET 注册,因此它显示 在 .NET 选项卡中。 我猜微软可能需要加强安装程序 这个场景。 与此同时,你可能需要自己做这件事。”
到底怎么办,我自己做什么?
I figured someone can answer the question generally but if anyone wants to get specific I am trying to use:
using System.Web.Security.SingleSignOn;
using System.Web.Security.SingleSignOn.Authorization;
I've googled my brains out and this is the closest answer I found:
"We discussed this offline, but it looks like the ADFS assembly is GACed, but
not installed on the file system or registered with VS.NET so that it shows
up in the .NET tab. I'm guessing MS may need to beef up the installer for
this scenario. In the meantime, you probably need to do this yourself."
What on earth, do WHAT myself?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
如果您尝试将程序集添加到 Visual Studio“添加引用”对话框中的“.NET”选项卡,则需要进行注册表设置。 KB30149 对此进行了更详细的解释。 简短版本:您需要向 <代码> HKEY_CURRENT_USER\SOFTWARE\Microsoft\.NETFramework\AssemblyFolders 注册表项。
如果您尝试在 GAC 中查找与程序集对应的物理文件,请转到命令提示符并转到
%WINDIR%\Assembly
(例如,C:\WINDOWS\Assembly )。 在那里导航 - 那是 GAC 集会所在的地方。
If you're trying to add the assembly to the ".NET" tab in the Visual Studio "Add References" dialog box, there's a registry setting you need to make. KB30149 explains it in greater detail. The short version: You need to add an entry to the
HKEY_CURRENT_USER\SOFTWARE\Microsoft\.NETFramework\AssemblyFolders
registry key.If you're trying to locate a physical file corresponding to an assembly in the GAC, drop to a command prompt and go to
%WINDIR%\Assembly
(e.g.,C:\WINDOWS\Assembly
). Navigate around in there - that's where GAC'd assemblies live.对于使用特定环境(如 SharePoint 对象模型)的项目,建议使用安装在 GAC 程序集中的虚拟 PC。 ADFS 程序集应该只有 Win 服务器。 如果您找到它们并在工作环境(桌面)中手动安装,那么某些可能性(例如调试)并非不可能。
For projects using specific environment (like SharePoint object model)is recommended using virtual pc with installed in GAC assemblies. ADFS assemblies should have only Win server. If you find them and install manually in work environment (desktop) some possibilities (like debugging) will not impossible.
您可以在这个文件中找到指定的命名空间:system.web.security.singlesignon.claimtransforms.dll
但是这个文件通常不可用,仅安装在GAC(全局程序集缓存)中。 您可以在例如c:\window\ assembly...下找到它,并将该dll复制到另一个路径。 然后您可以在 Visual Studio 中手动引用它。
You can find the specified namespace in this file: system.web.security.singlesignon.claimtransforms.dll
But this file isn't normaly available but only installed in the GAC (Global Assembly Cache). You may find it under e.g. c:\window\assembly... and copy the dll to another path. Then you can manual reference it within Visual Studio.
我发现安装日志显示它应该位于
您可能需要安装 Active Directory 才能使其出现在那里,因为我检查了一台没有 AD 的 2003 服务器,但它不在那里。
通常我猜测 DLL 会注册在系统范围的全局程序集缓存 (GAC) 中,因此您不必知道它的实际路径。 如果程序集已在 GAC 中注册,则可以通过打开“添加引用”对话框并单击“.NET”选项卡来添加对其的引用。
I found an install log showing that it was expected to be in
on Windows Server 2003. You probably need to have active directory installed for it to appear there because I checked one of my 2003 servers without AD and it wasn't there.
Normally I would guess the DLL would be registered in the system-wide Global Assembly Cache (GAC), so you wouldn't have to know the actual path for it. If an assembly is registered in the GAC, then you can add a reference to it by bringing up the "Add Reference" dialog and clicking on the ".NET" Tab.