diff options
author | 2016-02-04 18:08:49 +0000 | |
---|---|---|
committer | 2016-02-04 18:12:13 +0000 | |
commit | d18fc14e3861794e751af66b5de607d1f6f2f43d (patch) | |
tree | 06f1ec2024999f0731d33b22ce6148af98c0401f /src/csharp | |
parent | 0789c49566f3a44084c1fcc867383cbd84252bb7 (diff) |
Fix Profilers for coreclr
Coreclr doesn't support the StreamWriter(string) constructor.
Use File.CreateText() instead, which is equivalent and supported on all platforms.
Diffstat (limited to 'src/csharp')
-rw-r--r-- | src/csharp/Grpc.Core/Profiling/Profilers.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/csharp/Grpc.Core/Profiling/Profilers.cs b/src/csharp/Grpc.Core/Profiling/Profilers.cs index 471ee20875..aa0d96c0e0 100644 --- a/src/csharp/Grpc.Core/Profiling/Profilers.cs +++ b/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); } |