How to enable assembly bind failure logging (Fusion) in .NET

后端 未结 13 2862
难免孤独
难免孤独 2020-11-21 04:50

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

13条回答
  •  独厮守ぢ
    2020-11-21 05:22

    Add the following values to

    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Fusion
    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.

    By the way, don't forget to turn off fusion logging when not needed.

提交回复
热议问题