Could not load file or assembly or one of its dependencies

前端 未结 30 1753
生来不讨喜
生来不讨喜 2020-11-22 03:18

I\'m having another of these \"Could not load file or assembly or one of its dependencies\" problems.

Additional information: Could not load file or

30条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-11-22 04:05

    Despite the original question being posted five years ago, the problem still persists and is rather annoying.

    The general solution is thorough analysis of all referenced assemblies to understand what's going wrong. To make this task easier I made a tool (a Visual Studio extension) which allows selecting a .NET assembly (a .dll or .exe file) to get a graph of all the referenced assemblies while highlighting conflicting or missing references.

    The tool is available in Visual Studio Gallery: https://marketplace.visualstudio.com/vsgallery/051172f3-4b30-4bbc-8da6-d55f70402734

    Example of output:

提交回复
热议问题