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

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

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

13条回答
  •  我在风中等你
    2020-11-21 05:34

    I usually use the Fusion Log Viewer (Fuslogvw.exe from a Visual Studio command prompt or Fusion Log Viewer from the start menu) - my standard setup is:

    • Open Fusion Log Viewer as administrator
    • Click settings
    • Check the Enable custom log path checkbox
    • Enter the location you want logs to get written to, for example, c:\FusionLogs (Important: make sure that you have actually created this folder in the file system.)
    • Make sure that the right level of logging is on (I sometimes just select Log all binds to disk just to make sure things are working right)
    • Click OK
    • Set the log location option to Custom

    Remember to turn of logging off once you're done!

    (I just posted this on a similar question - I think it's relevant here too.)

提交回复
热议问题