如何启用程序集绑定失败日志记录(融合)的.NET绑定、程序、日志、NET

2023-09-02 01:16:22 作者:陌路离伤

如何启用程序集绑定失败日志记录(融合)的.NET?

How do I enable assembly bind failure logging (Fusion) in .NET?

推荐答案

添加以下值


HKEY_LOCAL_MACHINESOFTWAREMicrosoftFusion
Add:
DWORD ForceLog set value to 1
DWORD LogFailures set value to 1
DWORD LogResourceBinds set value to 1
DWORD EnableLog set value to 1
String LogPath set value to folder for logs (e.g. C:FusionLog)

请确保您包括反斜杠文件夹名后的文件夹存在。

Make sure you include the backslash after the folder name and that the Folder exists.

您需要重新启动你正在运行,迫使它来读取这些注册表设置程序。

You need to restart the program that you're running to force it to read those registry settings.