PC Review


Reply
Thread Tools Rate Thread

Assemblies in GAC

 
 
=?Utf-8?B?U3VrZXNoIFNoZXR0eQ==?=
Guest
Posts: n/a
 
      19th Jan 2005
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.
 
Reply With Quote
 
 
 
 
Mattias Sjögren
Guest
Posts: n/a
 
      19th Jan 2005
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

--
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
 
Reply With Quote
 
Dmitriy Lapshin [C# / .NET MVP]
Guest
Posts: n/a
 
      20th Jan 2005
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.

--
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

"Sukesh Shetty" <(E-Mail Removed)> wrote in message
news:E0AB7CCB-0C9E-4D2E-A788-(E-Mail Removed)...
> 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.


 
Reply With Quote
 
Richard Blewett [DevelopMentor]
Guest
Posts: n/a
 
      20th Jan 2005
Also, [1] tells you how to add other locations to the list of folders listed

[1] http://msdn.microsoft.com/library/de...references.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.


 
Reply With Quote
 
Abhishek Khare
Guest
Posts: n/a
 
      25th Jan 2005
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 [DevelopMentor]" <(E-Mail Removed)> wrote in
message news:OmWoiax$(E-Mail Removed)...
> Also, [1] tells you how to add other locations to the list of folders

listed
>
> [1]

http://msdn.microsoft.com/library/de...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.
>
>



 
Reply With Quote
 
Dmitriy Lapshin [C# / .NET MVP]
Guest
Posts: n/a
 
      26th Jan 2005
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" <(E-Mail Removed)> wrote in message
news:eiq%(E-Mail Removed)...
> 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 [DevelopMentor]" <(E-Mail Removed)> wrote in
> message news:OmWoiax$(E-Mail Removed)...
>> Also, [1] tells you how to add other locations to the list of folders

> listed
>>
>> [1]

> http://msdn.microsoft.com/library/de...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.
>>
>>

>
>


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Large assemblies/fewer quantity or Smaller assemblies/Larger quantities. milop Microsoft Dot NET Framework 0 26th Mar 2010 08:05 PM
How to Deploy WinSxS assemblies as Private assemblies? immi Microsoft VC .NET 2 4th May 2009 10:00 AM
System.Type.GetCommonAttributes() works on c# assemblies, not managed c++ assemblies. brad Microsoft Dot NET Framework 1 4th Mar 2007 02:43 PM
Loading resources from satellite assemblies of reflection loaded assemblies.. npthomson@gmail.com Microsoft C# .NET 0 23rd Nov 2006 05:08 PM
Why not make all assemblies as Strong Named Assemblies =?Utf-8?B?U3JpbmlL?= Microsoft Dot NET Framework 8 25th Sep 2004 07:49 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:11 PM.