Visual Studio - How to remove a reference in Release mode

后端 未结 5 2276
谎友^
谎友^ 2021-02-12 15:02

I\'m developing a library for use in other apps and this library has lots of debugging and logging statements thanks to NLog.

Is it possible to exclude the reference to

5条回答
  •  感情败类
    2021-02-12 15:38

    The only way I know is to take the reference out completely and call the assembly via reflection. Then, you should only log if the assembly loads.

提交回复
热议问题