Fix Profilers for coreclr

Coreclr doesn't support the StreamWriter(string) constructor.
Use File.CreateText() instead, which is equivalent and supported on all platforms.
pull/5066/head
Chris Bacon 9 years ago
parent 0789c49566
commit d18fc14e38
  1. 2
      src/csharp/Grpc.Core/Profiling/Profilers.cs

@ -111,7 +111,7 @@ namespace Grpc.Core.Profiling
public void Dump(string filepath)
{
using (var stream = new StreamWriter(filepath))
using (var stream = File.CreateText(filepath))
{
Dump(stream);
}

Loading…
Cancel
Save