Dean
Dean

Reputation: 5946

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?

Upvotes: 4

Views: 1161

Answers (1)

StuartLC
StuartLC

Reputation: 107267

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

Example of a Unit Test Project

Upvotes: 5

Related Questions