Преглед на файлове

Fix Profilers for coreclr

Coreclr doesn't support the StreamWriter(string) constructor.
Use File.CreateText() instead, which is equivalent and supported on all platforms.
Chris Bacon преди 9 години
родител
ревизия
d18fc14e38
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      src/csharp/Grpc.Core/Profiling/Profilers.cs

+ 1 - 1
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);
             }