Assemblies in GAC

G

Guest

Hi,

I have an assembly in GAC which I want to reference in my project. When I
try to add the reference using "Add Reference" in the solution explorer I
could not find the dll in the list(.NET as well as COM). Why is the dll that
is visible in the GAC not visible to Visual Studio.

The Dll I tried was "Microsoft.Office.DataParts.dll". I have Visual Studion
..NET 2003.

I later copied the dll from command line and included it in my project from
another location. But the question is why some of the dlls visble in GAC are
not visible to Visual Studio.

Thanks,
Sukesh.
 
M

Mattias Sjögren

Sukesh,
Why is the dll that is visible in the GAC not visible to Visual Studio.

Because Visual Studio doesn't list the content of the GAC.

I later copied the dll from command line and included it in my project from
another location.

Great, that's the way to do it.



Mattias
 
D

Dmitriy Lapshin [C# / .NET MVP]

Hi,

The list of assemblies you see in the "Add Reference" dialog is populated
not from the GAC contents, but rather from the Public Assemblies folder
under the Visual Studio .NET installation directory.
You can copy the assembly there and it will appear in the list.
 
R

Richard Blewett [DevelopMentor]

Also, [1] tells you how to add other locations to the list of folders listed

[1] http://msdn.microsoft.com/library/d.../vbcon/html/vbtskaddingremovingreferences.asp

Regards

Richard Blewett - DevelopMentor
http://www.dotnetconsult.co.uk/weblog
http://www.dotnetconsult.co.uk

Hi,

The list of assemblies you see in the "Add Reference" dialog is populated
not from the GAC contents, but rather from the Public Assemblies folder
under the Visual Studio .NET installation directory.
You can copy the assembly there and it will appear in the list.
 
A

Abhishek Khare

The list of assemblies you see in the "Add Reference" dialog is populated
not from the GAC contents, But from the folder, "Windows Directory /
Microsoft.Net / Framework / Version Folder(as v1.1.4322) /
You can copy the assembly there and it will appear in the list.
Happy DotNetting

--

Thanks & Regards,

Abhishek Khare
Asst. Software Engineer
Differential Technologies Ltd.
New Delhi
Richard Blewett said:
Also, [1] tells you how to add other locations to the list of folders listed
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon/html/
vbtskaddingremovingreferences.asp

Regards

Richard Blewett - DevelopMentor
http://www.dotnetconsult.co.uk/weblog
http://www.dotnetconsult.co.uk

Hi,

The list of assemblies you see in the "Add Reference" dialog is populated
not from the GAC contents, but rather from the Public Assemblies folder
under the Visual Studio .NET installation directory.
You can copy the assembly there and it will appear in the list.
 
D

Dmitriy Lapshin [C# / .NET MVP]

Hmm, I was unaware this folder also participates in populating the "Add
Reference" list. I am pretty sure though that the contents of the
%VSNETINSTALLDIR%\Common7\IDE\PublicAssemblies" folder is used to populate
the list, so I'd recommend that the latter folder is tried first, especially
that copying your own assemblies to the .NET Framework's installation folder
could be risky, while the 'PublicAssemblies' folder *is* dedicated to
copying your own assemblies there to appear in the list.

--
Sincerely,
Dmitriy Lapshin [C# / .NET MVP]
Bring the power of unit testing to the VS .NET IDE today!
http://www.x-unity.net/teststudio.aspx

Abhishek Khare said:
The list of assemblies you see in the "Add Reference" dialog is populated
not from the GAC contents, But from the folder, "Windows Directory /
Microsoft.Net / Framework / Version Folder(as v1.1.4322) /
You can copy the assembly there and it will appear in the list.
Happy DotNetting

--

Thanks & Regards,

Abhishek Khare
Asst. Software Engineer
Differential Technologies Ltd.
New Delhi
Richard Blewett said:
Also, [1] tells you how to add other locations to the list of folders listed
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon/html/
vbtskaddingremovingreferences.asp

Regards

Richard Blewett - DevelopMentor
http://www.dotnetconsult.co.uk/weblog
http://www.dotnetconsult.co.uk

Hi,

The list of assemblies you see in the "Add Reference" dialog is
populated
not from the GAC contents, but rather from the Public Assemblies folder
under the Visual Studio .NET installation directory.
You can copy the assembly there and it will appear in the list.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top