【问题标题】:NLog not working with MSTest, where should the config go?NLog 不能与 MSTest 一起使用,配置应该去哪里?
【发布时间】:2016-10-12 15:35:19
【问题描述】:

我们最近将测试从 NUnit 迁移到 MSTest,我正在努力让之前通过的测试运行。从我可以推断出 MSTest 无法检测到 NLog 配置。 我的 App.config 中有我的 Nlog 配置,它不会导致 NUnit 出现问题。

有人有什么想法吗?

【问题讨论】:

    标签: mstest nlog


    【解决方案1】:

    将 App.config 的 Copy to Output Directory 设置更改为 Copy AlwaysCopy if Newer。更多关于这个here

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-12-20
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多