Results 1 to 2 of 2

Thread: c# application and dlls

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Jun 2005
    Posts
    1,170

    c# application and dlls

    Hi all, I developed an application exe that implements quite a few of dlls. Then I developed another program that uses the same dlls. In the release folders of each application, it shows those dlls. Since the dlls are the same, I am wondering if this is a good practice or not and whether or not this could work by having those dlls in one separate folder from each of my application. That way, both applications folders don't have to contain those same dlls?

    how do I accomplish this? I might write more applications and potentially it would use the same dlls.

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,222

    Re: c# application and dlls

    If you want to have one copy of a library used by multiple applications then that library needs to be installed in the Global Assembly Cache (GAC). That's exactly what happens with the libraries from the .NET Framework itself and various other common components that you may install along the way. Libraries can be installed in the GAC manually but it is usually done automatically by an installer. Look up the GAC on MSDN and you will find all the information you need.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width