NLog 无法与 MSTest 一起使用,配置应该放在哪里?
我们最近将测试从 NUnit 迁移到 MSTest,我正在努力让之前通过的测试运行。据我所知,MSTest 无法检测到 NLog 配置。 我的 App.config 中有 Nlog 配置,这不会导致 NUnit 出现问题。
有人有什么想法吗?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
将 App.config 的
复制到输出目录
设置更改为始终复制
或如果较新则复制
。有关此内容的更多信息此处。Change the
Copy to Output Directory
setting for your App.config toCopy Always
orCopy if Newer
. More on this here.