我最近用我通过NuGet安装的NLog实现了一些日志。在调试期间,这在我的本地机器上工作得很好。
现在,当我(或其他任何人)尝试安装我们的外接程序时,该外接程序在Excel中不存在。没有错误消息,也没有日志文件证据,但是控制面板中存在该加载项。
该加载项也不会出现在excel的“文件”>“选项”>“AddIns”>“COM”面板中。
编辑:在%TEMP%中找到一个日志文件。
Exception Source: MyPlugin
Exception Type: System.IO.FileLoadException
Exception Message: Could not load file or assembly 'NLog, Version=4.0.0.0, Culture=neutral, PublicKeyToken=5120e14c03d0593c' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
Exception Target Site: .cctor那么我如何告诉addin-express使用nuget中的nlog文件呢?
发布于 2019-04-30 01:09:05
原来是Addin-Express安装有问题。我们必须卸载并重新安装它,然后将依赖项与插件安装正确捆绑在一起。
https://stackoverflow.com/questions/55152398
复制相似问题