Correct way to reference log4net DLL in WinForms application

后端 未结 3 990
你的背包
你的背包 2021-01-28 02:36

My WinForms 2.0 application has 2 assemblies. 1st assembly handles GUI and project specific code, and 2nd assembly is where I put all my reusable code. Both projects are part of

3条回答
  •  没有蜡笔的小新
    2021-01-28 03:24

    should I copy the log4net.dll file into each project directory?

    No. Keep it at separate dependencies folder. This folder should be common for all projects in Solution. You should reference log4net.dll into each project (that require this component).

    Or should I also add the entire log4net source code project as part of the solution, so that I am insulated from any future changes in log4net breaking my existing application?

    It is not required. It is required only if you are facing any issues in log4net.dll and want to diagnose yourself.

提交回复
热议问题