I\'ve been trying to work with ETW in .net 4.0.
I have started using Microsoft EventSource Library 1.0.4-beta (https://www.nuget.org/packages/Microsoft.Diagnostics.Trac
You don't need to get the Manifest any longer. You can now directly register the EventSource:
Registering your EventSource
When you install the EventSource NuGet package, the build step previously mentioned generates the following files for each EventSource in your application:
AssemblyName.EventSourceTypeName.etwManifest.man
AssemblyName.EventSourceTypeName.etwManifest.dll.
These files need to be registered with the operating system to enable channel support. To do this you run the following command after the files are in their final deployed location:
wevtutil.exe im EtwManifestManFile /rf:"EtwManifestDllFile"c /mf:"EtwManifestDllFile"
Microsoft explained this in this Blog:
Announcing the EventSource NuGet Package – Write to the Windows Event Log