You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Replaces the single public NuGetEventSource static class in NuGet.Common with per-assembly internal sealed manifest-based EventSource classes. This makes ETW tracing AOT-compatible
What changed:
Deleted NuGet.Common.NuGetEventSource (public static class wrapping EventSource.Write<T>(), which uses reflection and is not AOT-safe)
Created 4 internal EventSource classes, one per assembly:
- CommonEventSource (provider: Microsoft-NuGet-Common)
- ConfigurationEventSource (provider: Microsoft-NuGet-Configuration)
- CommandsEventSource (provider: Microsoft-NuGet-Commands)
- SdkResolverEventSource (provider: Microsoft-NuGet-SdkResolver)
Breaking change: NuGet.Common.NuGetEventSource is removed from the public API surface. ETW consumers must update provider names from Microsoft-NuGet to the assembly-specific names listed above.
Added needs-breaking-change-doc-created label because this PR has the breaking-change label.
When you commit this breaking change:
Create and link to this issue a matching issue in the dotnet/docs repo using the breaking change documentation template, then remove this needs-breaking-change-doc-created label.
Ask a committer to mail the .NET SDK Breaking Change Notification email list.
issue wise, note that I am taliking about a nuget/hoem tracking issue (which we need anyways).
we don't need to follow the SDK breaking change process since this doesn't affect the restore command functionality.
issue wise, note that I am taliking about a nuget/hoem tracking issue (which we need anyways). we don't need to follow the SDK breaking change process since this doesn't affect the restore command functionality.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bug
Fixes: NuGet/Home#14783
Description
Replaces the single public
NuGetEventSourcestatic class inNuGet.Commonwith per-assembly internal sealed manifest-based EventSource classes. This makes ETW tracing AOT-compatibleWhat changed:
NuGet.Common.NuGetEventSource(public static class wrappingEventSource.Write<T>(), which uses reflection and is not AOT-safe)EventSourceclasses, one per assembly:-
CommonEventSource(provider: Microsoft-NuGet-Common)-
ConfigurationEventSource(provider: Microsoft-NuGet-Configuration)-
CommandsEventSource(provider: Microsoft-NuGet-Commands)-
SdkResolverEventSource(provider: Microsoft-NuGet-SdkResolver)Breaking change: NuGet.Common.NuGetEventSource is removed from the public API surface. ETW consumers must update provider names from Microsoft-NuGet to the assembly-specific names listed above.
Perfview reads from restore orchardcore
Before and now
PR Checklist