From d18fc14e3861794e751af66b5de607d1f6f2f43d Mon Sep 17 00:00:00 2001 From: Chris Bacon Date: Thu, 4 Feb 2016 18:08:49 +0000 Subject: [PATCH 1/2] Fix Profilers for coreclr Coreclr doesn't support the StreamWriter(string) constructor. Use File.CreateText() instead, which is equivalent and supported on all platforms. --- src/csharp/Grpc.Core/Profiling/Profilers.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/csharp/Grpc.Core/Profiling/Profilers.cs b/src/csharp/Grpc.Core/Profiling/Profilers.cs index 471ee20875e..aa0d96c0e02 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); } From 435b155152a124d62fca6e3d3808c5317ff7f438 Mon Sep 17 00:00:00 2001 From: Chris Bacon Date: Mon, 8 Feb 2016 10:11:56 +0000 Subject: [PATCH 2/2] Correct copyright date --- src/csharp/Grpc.Core/Profiling/Profilers.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/csharp/Grpc.Core/Profiling/Profilers.cs b/src/csharp/Grpc.Core/Profiling/Profilers.cs index aa0d96c0e02..8a181447d62 100644 --- a/src/csharp/Grpc.Core/Profiling/Profilers.cs +++ b/src/csharp/Grpc.Core/Profiling/Profilers.cs @@ -1,6 +1,6 @@ #region Copyright notice and license -// Copyright 2015, Google Inc. +// Copyright 2015-2016, Google Inc. // All rights reserved. // // Redistribution and use in source and binary forms, with or without