Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit 689ad32

Browse files
committed
Only update the contract for netcoreapp.
1 parent 1cde2a3 commit 689ad32

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/System.Diagnostics.Tracing/ref/System.Diagnostics.Tracing.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -294,8 +294,10 @@ internal EventWrittenEventArgs() { }
294294
public System.Diagnostics.Tracing.EventTags Tags { get { throw null; } }
295295
public System.Diagnostics.Tracing.EventTask Task { get { throw null; } }
296296
public byte Version { get { throw null; } }
297+
#if FEATURE_EVENTLISTENERCONTEXT
297298
public long OSThreadId { get { throw null; } }
298299
public DateTime TimeStamp { get { throw null; } }
300+
#endif
299301
}
300302
[System.AttributeUsageAttribute((System.AttributeTargets)(64))]
301303
public sealed partial class NonEventAttribute : System.Attribute

src/System.Diagnostics.Tracing/ref/System.Diagnostics.Tracing.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
66
<ProjectGuid>{0D8C8BAE-E5A5-4E9F-B101-3D18BD81D261}</ProjectGuid>
77
<IsPartialFacadeAssembly Condition="'$(TargetGroup)' == 'netfx'">true</IsPartialFacadeAssembly>
8-
<DefineConstants Condition="'$(TargetGroup)' == 'netcoreapp'">$(DefineConstants);FEATURE_ETLEVENTS</DefineConstants>
8+
<DefineConstants Condition="'$(TargetGroup)' == 'netcoreapp'">$(DefineConstants);FEATURE_ETLEVENTS;FEATURE_EVENTLISTENERCONTEXT</DefineConstants>
99
<!-- CS0067: unused event, reference assembly does not care -->
1010
<NoWarn>$(NoWarn);0067</NoWarn>
1111
</PropertyGroup>

0 commit comments

Comments
 (0)