NLog not working with MSTest, where should the config go?
问题 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