Share DLL between 2 process in .net

2019-08-26 19:56发布

I have 2 Winforms project and 1 Library project in my solution, this 2 winforms will be launched independently by the user.

What happens right now is that the shared DLL is instantiated in memory per process, even if both exes are in the same folder or if the DLL is in the GAC.

But I wish I could reuse the same DLL between those 2 process.


I found a workaround, create a third project and instantiate the winforms project from there, in this case the DLL will be only instantiated once in memory. But I don't like to have an extra project for this to work. Any other Solution?

0条回答
登录 后发表回答