title: stack trace from the current location in .NET Core
body: <p>How can I constructs a stack trace from the current location?</p>
  
  <p>In .NET 4.5 works this solution:</p>
  
  <pre><code>System.Diagnostics.StackTrace stackTrace = new System.Diagnostics.StackTrace(true);
  for (int i = 0; i &lt; stackTrace.FrameCount; ++i)
  {
      System.Diagnostics.StackFrame frame = stackTrace.GetFrame(i);
      MethodBase callerMethod = frame.GetMethod();
      ...
  }
  </code></pre>
  
  <p>But what is the solution in .NET Core?
  The constructor <code>public StackTrace(bool fNeedFileInfo)</code> does not exists anymore.</p>