perfview icon indicating copy to clipboard operation
perfview copied to clipboard

EventRegister does not work with Microsoft.Diagnostics.Tracing.EventSource

Open noahfalk opened this issue 4 years ago • 2 comments

Forwarding an issue that was first reported in https://github.com/dotnet/runtime/issues/30690#issuecomment-750329716 by @kirillkovalenko

Latest version of EventRegister package (1.1.28) could not be used with the current version (5.0) of the Microsoft.Diagnostics.Tracing.EventSource because assembly public key has changed.

noahfalk avatar Jan 04 '21 22:01 noahfalk

@kirillkovalenko can you share the error that you're getting? A quick view of the source code looks like it doesn't depend upon the assembly identity. Also, as an FYI, in most cases, you should not actually need EventRegister, as most tools out there know how to pull the manifest for an EventSource from the event stream rather than from the OS.

brianrob avatar Jan 06 '21 19:01 brianrob

Issue1339.zip

Error List:

Severity	Code	Description	Project	File	Line	Suppression State
Error		The command ""C:\Users\kiril\Source\Repos\Issue1339\packages\Microsoft.Diagnostics.Tracing.EventRegister.1.1.28\build\eventRegister.exe" -DumpRegDlls @"C:\Users\kiril\Source\Repos\Issue1339\Issue1339\bin\Debug\Issue1339.eventRegister.rsp" "C:\Users\kiril\Source\Repos\Issue1339\Issue1339\bin\Debug\Issue1339.dll" " exited with code 1.	Issue1339			
Severity	Code	Description	Project	File	Line	Suppression State
Error		Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.	Issue1339	C:\Users\kiril\Source\Repos\Issue1339\Issue1339\EXEC

Build:

Build started...
1>------ Build started: Project: Issue1339, Configuration: Debug Any CPU ------
1>  Issue1339 -> C:\Users\kiril\Source\Repos\Issue1339\Issue1339\bin\Debug\Issue1339.dll
1>EXEC : error : Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
1>  LoaderException:
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

kirillkovalenko avatar Jan 06 '21 19:01 kirillkovalenko