为什么 NBug HostApplicationVersion 显示的应用程序版本不正确?

Why NBug HostApplicationVersion shows an incorrect version of the application?

我收到崩溃报告,但 HostApplicationVersion 没有显示我的应用程序的版本。 似乎显示了 NBug 本身的版本,而我的应用程序的版本是 2.12.4.0.

<Report xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <GeneralInfo>
    <CLRVersion>4.0.30319.42000</CLRVersion>
    <DateTime>10/14/2020 6:17:46 PM</DateTime>
    <ExceptionMessage>Object reference not set to an instance of an object.</ExceptionMessage>
    <ExceptionType>System.NullReferenceException</ExceptionType>
    <HostApplication>HotBotVPN.exe</HostApplication>
    <HostApplicationVersion>1.2.*</HostApplicationVersion>
    <NBugVersion>1.2.1.0</NBugVersion>
    <TargetSite>...</TargetSite>
  </GeneralInfo>
</Report>

您可能需要这样设置:https://github.com/soygul/NBug/blob/master/NBug/Settings.cs#L391

我猜你正在动态加载可能导致此问题的 NBug 程序集。