Share code libraries across applications

Asked

Viewed 40 times

3

In my scenario I have several different applications (desktop) that are created in the most diverse ways, in short, can be grouped in those that use the same DLL. The operation of each application depends on the entire application being installed, along with the Dlls, which causes repetition of these files on the user’s machine. When it comes to proprietary libraries, not Windows standards, is there any way to make them accessible to all applications with one file? Since it is not within my power to directly change the program’s relationship with the library.

  • I prefer to keep the duplicates, although it is "the same library" there may be different versions... to avoid missing any, at the beginning of the application I check the existence and download if necessary. Thus, the user only needs to receive the . exe, which he takes care of receiving all the dependencies

1 answer

2


I imagine you’re using the . NET Framework so that’s it put these Dlls into the GAC (Global Assembly Cache). No. NET Core is quite different, and that is the modern way of programming in C#.

GAC is the place where all the necessary Dlls are located for the whole machine and not exclusive to an application. You have to be a little careful to do that, you have to think about how you’re going to manage that because it can start to cause problems with the updates, one of the reasons that ended up being . NET Core. So in many cases it pays to have the duplication and not use GAC.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.