Share DLL between 2 process in .net

自古美人都是妖i 提交于 2019-12-12 04:36:06

问题


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?

来源:https://stackoverflow.com/questions/18720549/share-dll-between-2-process-in-net

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!