![]() |
||||
Introduction Visual Studio uses assemblies that, among others, are in one of these subfolders of C:\Program Files\<Microsoft Visual Studio folder>:
But some assemblies are installed only in the Global Assembly Cache (GAC). The GAC is a special folder typically located at:
The GAC stores different versions of shared assemblies used at run-time by .NET applications. The GAC is actually a set of folders, but when you use the Windows Explorer to browse the first of the GACs (C:\Windows\Assembly), a shell extension shows a unified view (assembly name, version, culture, public key token and arquitecture) of all installed assemblies. The othe GAC folder (C:\Windows\Microsoft.NET\assembly) doesn't have such shell extension. Sometimes your add-in project needs to reference an assembly that is only in the GAC or installing the VSIP / Visual Studio SDK, for example, the Microsoft.VisualStudio.OLE.Interop.dll assembly. More Information If you don't want to install the Visual Studio SDK stuff on your computer just to reference an assembly that is only in the GAC, since Visual Studio doesn't allow to add references to an assembly in the GAC (because the GAC is a deployment feature, not a development feature) you can follow this procedure to extract the assembly from the GAC that has the shell extension (C:\Windows\Assembly):
Most Visual Studio assemblies are not redistributable, which means that your setup should not include them. Rather, Visual Studio (which installs those assemblies in the GAC) should be a prerequisite on the target computer. Go back to the 'Resources for Visual Studio .NET extensibility' section for more articles like this
|
| Copyright © 2000-2013 MZTools Software. All Rights Reserved. Legal Notice |