I'm confused by the three available sources of EventSource, and unsure which one is the correct one to use.
The Microsoft.Diagnostics.Tracing.EventSource package has not been updated since 2015. However, the Microsoft.Diagnostics.Tracing.EventSource.Redist package has newer versions and seems to be under active development. The description of the Redist package says "Application developers that need this functionality should instead reference the Microsoft.Diagnostics.Tracing.EventSource", however, that's the package that is not maintained any more. And then there is also the built in System.Diagnostics.Tracing.EventSource.
I'm using EventSource in a library that is used by several applications. Some of them are .NET Framework, others are .NET Core applications, so I'd like to develop a .NET Standard class library. Which EventSource version is the correct one for my use case and why?
cc: @tommcdon
@josalem @sywhang @noahfalk
Unless you are targeting a version of .NET older than 4.5 or netstandard 1.1, you will want to use System.Diagnostics.Tracing.EventSource. The Redist package is meant for adding EventSource in for older versions of the framework and is actually the same code base as the baked in version. @brianrob is there a way we can make this more explicit in the package descriptions?
It would be reasonable to update the package description here with more details.
Thanks for the quick response and clarification.
My pleasure! I'm going to leave this open as work item for updating the description of the packages.
Most helpful comment
Unless you are targeting a version of .NET older than 4.5 or netstandard 1.1, you will want to use
System.Diagnostics.Tracing.EventSource. TheRedistpackage is meant for adding EventSource in for older versions of the framework and is actually the same code base as the baked in version. @brianrob is there a way we can make this more explicit in the package descriptions?