Where can I find Microsoft assemblies that are not already in Visual Studio?

I figured that someone could answer the question as a whole, but if someone wants to get a specific one, I am trying to use:

using System.Web.Security.SingleSignOn; using System.Web.Security.SingleSignOn.Authorization;

I searched my brains 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 in VS.NET so that it displays in the .NET tab. I assume that MS may need to strengthen the installer for this scenario . In the meantime, you probably need to do this yourself. "

What the hell is HOW yourself?

+1
source share
4 answers

I found to install the log , indicating that it should be in

C: \ WINDOWS \ ADFS \ System.Web.Security.SingleSignon.dll

on Windows Server 2003. You probably need to set the active directory so that it appears there because I checked one of my 2003 servers without AD and it wasn’t there.

I usually assumed that the DLL would be registered in the system-wide global assembly cache (GAC), so you would not need to know the actual path for it. If the assembly is registered in the GAC, you can add a link to it by opening the "Add Link" dialog and clicking on the ".NET" tab.

+2
source

You can find the specified namespace in this file: system.web.security.singlesignon.claimtransforms.dll

But this file is not normal, but is only available in GAC (Global Assembly Cache). You can find it, for example, c: \ window \ assembly ... and copy the dll to another path. You can then manually reference it in Visual Studio.

+1
source

For projects that use a specific environment (for example, the SharePoint object model), it is recommended that you use a virtual computer with GAC assemblies installed. In ADFS assemblies, there should only be a Win server. If you find them and install them manually in a working environment (desktop), some features (for example, debugging) will not be impossible.

0
source

If you are trying to add an assembly to the .NET tab in the Add Links dialog box in Visual Studio, you must create a registry setting. KB30149 explains this in more detail. Short version: you need to add an entry to the registry HKEY_CURRENT_USER\SOFTWARE\Microsoft\.NETFramework\AssemblyFolders .

If you are trying to find a physical file that matches the assembly in the GAC, go to the command line and go to %WINDIR%\Assembly (for example, C:\WINDOWS\Assembly ). Move to where GAC builds live.

0
source

Source: https://habr.com/ru/post/1394219/


All Articles