0

如果有这个重复,我会支持它,但直到有人为我找到它......这是我今天学到的东西[似乎没有人在博客上写过]条目......

使用 TestDriven.NET,我不断地从以下输出Assembly.Load

警告:程序集绑定日志记录已关闭。

要启用程序集绑定失败日志记录,请将注册表值 >[HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) 设置为 1。

注意:有一些与程序集绑定失败日志相关的性能损失。

要关闭此功能,请删除注册表值 [HKLM\Software\Microsoft\Fusion!EnableLog]。

所以我加载了 fuslogvw,因为我在 x64 系统上,甚至尝试了相同的 x64 版本,但无论我重试多少次,都无法让它显示日志。我验证了注册表中的设置,一切似乎都应该是 -EnableLog已设置,但重新运行仍然没有乐趣。

4

1 回答 1

0

事实证明,该设置的值被缓存在进程中,并且由于 TestDriven.net 保持一个进程 (ProcessInvocation.exe) 挂起以提供快速启动,它不会在不单击托盘图标 (红色干草叉) 的情况下拾取它) 并选择停止 [在下次运行时触发重新加载]。所以现在,我得到:

Running under executable  C:\Program Files (x86)\TestDriven.NET 2.0\ProcessInvocation.exe
--- A detailed error log follows. 

=== Pre-bind state information ===

...

===
LOG: This bind starts in LoadFrom load context.
WRN: Native image will not be probed in LoadFrom context. Native image will only be probed in default load context, like with Assembly.Load().

随心所欲...

于 2009-11-30T10:39:56.167 回答