原因:没有为dll指定正确的配置文件
解决办法:
1. 如果是用Visual Studio .NET,在预生成事件命令行中键入:
copy /y "$(ProjectDir)App.config" "$(TargetPath).config"
copy /y "$(ProjectDir)hibernate.cfg.xml" "hibernate.cfg.xml"
2.在NUnit gui 中的project>Edit 窗口中编辑 configuration file name,在config前面键入.dll
最后的样式就是 yourassembly.dll.config

相关文章:

  • 2019-08-30
  • 2021-06-12
  • 2022-12-23
  • 2021-11-01
  • 2022-12-23
  • 2017-12-04
  • 2022-12-23
猜你喜欢
  • 2021-12-14
  • 2021-06-22
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-07
相关资源
相似解决方案