Re: Strange error for referencing dll

From: Bob Powell [MVP] (bob_at__spamkiller_bobpowell.net)
Date: 08/17/04


Date: Tue, 17 Aug 2004 12:06:26 +0200

The assemblies in that folder are also duplicated in the GAC. To my
knowledge, none of the .NET assemblies are copied local and all run from the
GAC copy. The references made to assemblies in that or any other folder will
do one of two things. #1 If the assembly is strongly named a copy will be
assumed to be distributed to the GAC of any target machine and the assembly
will not be copied local to the application. #2 If the asssembly isn't
strongly named a local copy of the referenced assembly will be created and
that will be assumed to be distributed along with the application.

There are articles in MSDN pertaining to strong-naming of assemblies.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconWorkingWithStrongly-NamedAssemblies.asp

-- 
Bob Powell [MVP]
Visual C#, System.Drawing
The Image Transition Library wraps up and LED style instrumentation is
available in the June of Well Formed for C# or VB programmers
http://www.bobpowell.net/currentissue.htm
Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/gdiplus_faq.htm
The GDI+ FAQ RSS feed: http://www.bobpowell.net/faqfeed.xml
Windows Forms Tips and Tricks RSS: http://www.bobpowell.net/tipstricks.xml
Bob's Blog: http://bobpowelldotnet.blogspot.com/atom.xml
"Andy Becker" <x@x.com> wrote in message
news:%23fVKWzLgEHA.3024@TK2MSFTNGP10.phx.gbl...
> "Bob Powell [MVP]" <bob@_spamkiller_bobpowell.net> wrote in message
> news:eAmN%23lEgEHA.4092@TK2MSFTNGP10.phx.gbl...
> > Don't even try to put it in that folder.
>
> Why not?  The IDE looks for assemblies there, and it can make things a lot
> simpler if one does not use strong naming.
>
> Best Regards,
>
> Andy
>
>


Relevant Pages

  • Re: using GAC
    ... When you look at the GAC in explorer, it actually isn't a folder view. ... so that you can compile your code. ... you should drop your assemblies into a local folder, ...
    (microsoft.public.dotnet.languages.csharp)
  • Global Assembly Cache
    ... I took over a legacy e-commerce project that utilized.NET 1.1 to create the website code and all associated assemblies. ... Right now they have a separate directory for each store, complete with a \bin folder that contains about 20 DLL files. ... Can I simply drop these DLL files in the GAC and then delete the corresponding DLL files in the \bin folder for each site? ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Question on Tools/Options/File Locations...
    ... I feel that Solidworks does a poor job of finding referenced files. ... I have a projects folder and within that all my different jobs are ... external references" - Checked or unChecked ... Assemblies will search for referenced components in three places in the ...
    (comp.cad.solidworks)
  • Re: Referencing your other assemblies in projects
    ... Yeah, I know it seems weird, but I still put winforms applications under the ... I set the working folder ... My company sets up a "Release" folder for commonly used assemblies. ... the dietcoke manager can relatively reference ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Add .NET Reference in VS 2005
    ... > The reason I want my code-behind in the GAC is for deployment. ... assemblies, added a key file and precompiled the site. ... Then I copied the site to another folder and deleted the ... David ...
    (microsoft.public.dotnet.framework.aspnet)