我得到了一个崩溃报告,但是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>发布于 2020-10-15 07:56:34
您可能需要设置如下:https://github.com/soygul/NBug/blob/master/NBug/Settings.cs#L391
我猜您正在动态加载NBug程序集,这可能导致这种情况。
https://stackoverflow.com/questions/64360906
复制相似问题