NLog not working with MSTest, where should the config go?

天涯浪子 提交于 2019-12-10 17:33:29

问题


We have recently migrated tests from NUnit to MSTest and I am struggling to get previously passing tests runnning. From what I can deduce MSTest cannot detect the NLog configuration. I have my Nlog configuration in my App.config which didn't cauise an issue with NUnit.

Has anyone any ideas?


回答1:


Change the Copy to Output Directory setting for your App.config to Copy Always or Copy if Newer. More on this here.



来源:https://stackoverflow.com/questions/4509987/nlog-not-working-with-mstest-where-should-the-config-go

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