Can the same DLL data be shared by 2 different processes?

后端 未结 5 1571
无人及你
无人及你 2020-12-10 08:12

I have two different C# applications that are running at the same time.

I would like both of them to be able to access the same \"instance\" of a DLL (also in C#).

5条回答
  •  借酒劲吻你
    2020-12-10 08:51

    A DLL has no instance, it is loaded in a host process. Reference the assembly in both applications and use its classes/methods.

    If you want to avoid deploying the same assembly for both applications you could put it in the GAC.

提交回复
热议问题