【发布时间】:2016-10-12 15:35:19
【问题描述】:
我们最近将测试从 NUnit 迁移到 MSTest,我正在努力让之前通过的测试运行。从我可以推断出 MSTest 无法检测到 NLog 配置。 我的 App.config 中有我的 Nlog 配置,它不会导致 NUnit 出现问题。
有人有什么想法吗?
【问题讨论】:
我们最近将测试从 NUnit 迁移到 MSTest,我正在努力让之前通过的测试运行。从我可以推断出 MSTest 无法检测到 NLog 配置。 我的 App.config 中有我的 Nlog 配置,它不会导致 NUnit 出现问题。
有人有什么想法吗?
【问题讨论】:
将 App.config 的 Copy to Output Directory 设置更改为 Copy Always 或 Copy if Newer。更多关于这个here。
【讨论】: