Hello
I have a problem with missing exception info when crunching in optimized mode. The coverage markers where the exception occurs and propagates does not indicate exception (no X) and the NCrunch Trace Output is missing line numbers (and hyperlink) in the stack trace. In order to find out where the exception occurs I have to start debugging and rely on VS to catch the exception dialog. This is cumbersome ;)
This behavior is consistent for me on VS2017 v15.9.4 with NCrunch 4.2.05 and XUnit 2.4.0 when I create a .NET Core project and manually switch to target framework net471 in the csproj file. (Projects with target framework netcoreapp2.1 are working as expected. Also running the same under VS2019 is working fine, but this is not an option for me).
Switching to legazy mode solves the problem, but is a bummer.
Code:
<Project Sdk="Microsoft.NET.Sdk>
<PropertyGroup><TargetFramework>net471</TargetFramework></PropertyGroup>
<ItemGroup><PackageReference Include="xunit" Version="2.4.0"/></ItemGroup>
</Project>
public class Test
{
[Fact]
public void NoExceptionInfo() {throw new Exception("No NCrunch exception info here!")}
}
Has anyone else experienced this and/or have any clues on how to solve this?
Kind regards
Dataslask