Visual Studio - How to remove a reference in Release mode

后端 未结 5 2243
谎友^
谎友^ 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 16:02

    Why would you want to do that?

    If you want to stop logging, you can programatically turn off the logging. The performance hit will be minimal. (I have had great success with NLog even when logging cross process.)

    Otherwise, you need to wrap it as described above.

    -Scott

提交回复
热议问题