From 5c9febf6346f90c06e70b3cb9e002300e50fa54b Mon Sep 17 00:00:00 2001 From: Marek Safar Date: Tue, 22 Jan 2019 04:28:13 +0100 Subject: [PATCH] Move TplEtwProvider to shared partition (#22120) --- .../System.Private.CoreLib.csproj | 1 - .../shared/System.Private.CoreLib.Shared.projitems | 1 + .../System/Threading/Tasks/TplEtwProvider.cs} | 20 +++++--------------- 3 files changed, 6 insertions(+), 16 deletions(-) rename src/System.Private.CoreLib/{src/System/Threading/Tasks/TPLETWProvider.cs => shared/System/Threading/Tasks/TplEtwProvider.cs} (98%) diff --git a/src/System.Private.CoreLib/System.Private.CoreLib.csproj b/src/System.Private.CoreLib/System.Private.CoreLib.csproj index 5f18c51..b7c5623 100644 --- a/src/System.Private.CoreLib/System.Private.CoreLib.csproj +++ b/src/System.Private.CoreLib/System.Private.CoreLib.csproj @@ -279,7 +279,6 @@ - diff --git a/src/System.Private.CoreLib/shared/System.Private.CoreLib.Shared.projitems b/src/System.Private.CoreLib/shared/System.Private.CoreLib.Shared.projitems index 5db0c04..faecf9b 100644 --- a/src/System.Private.CoreLib/shared/System.Private.CoreLib.Shared.projitems +++ b/src/System.Private.CoreLib/shared/System.Private.CoreLib.Shared.projitems @@ -788,6 +788,7 @@ + diff --git a/src/System.Private.CoreLib/src/System/Threading/Tasks/TPLETWProvider.cs b/src/System.Private.CoreLib/shared/System/Threading/Tasks/TplEtwProvider.cs similarity index 98% rename from src/System.Private.CoreLib/src/System/Threading/Tasks/TPLETWProvider.cs rename to src/System.Private.CoreLib/shared/System/Threading/Tasks/TplEtwProvider.cs index 6c28ba5..311445e 100644 --- a/src/System.Private.CoreLib/src/System/Threading/Tasks/TPLETWProvider.cs +++ b/src/System.Private.CoreLib/shared/System/Threading/Tasks/TplEtwProvider.cs @@ -2,21 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -// =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+ -// -// -// -// EventSource for TPL. -// -// =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- - -using System; -using System.Collections.Generic; -using System.Text; -using System.Security; using System.Runtime.CompilerServices; using System.Diagnostics.Tracing; - using Internal.Runtime.CompilerServices; namespace System.Threading.Tasks @@ -24,8 +11,11 @@ namespace System.Threading.Tasks /// Provides an event source for tracing TPL information. [EventSource( Name = "System.Threading.Tasks.TplEventSource", - Guid = "2e5dba47-a3d2-4d16-8ee0-6671ffdcd7b5", - LocalizationResources = "FxResources.System.Private.CoreLib.SR")] + Guid = "2e5dba47-a3d2-4d16-8ee0-6671ffdcd7b5" +#if CORECLR + ,LocalizationResources = "FxResources.System.Private.CoreLib.SR" +#endif + )] internal sealed class TplEtwProvider : EventSource { /// Used to determine if tasks should generate Activity IDs for themselves -- 2.7.4