Exception line number in CSharpScript.EvaluateAsync
问题 I'm evaluating an script using the CSharpScript.EvaluatyAsync<T> method and passing some C# code. I can easily see the line number of errors when there is a parsing issue, e.g. a syntax error, but when there is a runtime exception all I get is an AggregateException wrapping my exception ( NullReferenceException ) in this case, but there is no clue of how to get the line number for me (3 in this example below). Console.WriteLine(CSharpScript.EvaluateAsync<int>( @"string s = null; // some