The below error occurs after adding the following NuGet packages to a .Net project:
NServiceBus.EventSourceLogging
Microsoft.Diagnostics.Tracing.EventRegister
This error can occur under either of the following conditions:
At least one method in the EventSourceLogger class is decorated with an EventAttribute with an EventChannel other than None.
The MSBuild property EtwManifestForceAll is set to true.
1>EXEC : error : MyApp.EventSourceLogger: Generation of ETW manifest failed
1>EXEC : error : MyApp.EventSourceLogger: Unexpected error: Could not find any resources appropriate for the specified culture or the neutral culture. Make sure "NServiceBus.EventSourceLogging.Properties.Resources.resources" was correctly embedded or linked into assembly "MyApp" at compile time, or that all the satellite assemblies required are loadable and fully signed.
1> Compiling Manifest C:\path\to\project\bin\Debug\MyApp.NServiceBus-Host-Example.etwManifest.man to ETW binary form.
1> Creating Manifest DLL to hold binary Manifest at C:\path\to\project\bin\Debug\MyApp.NServiceBus-Host-Example.etwManifest.dll.
1>EXEC : error : Failures encountered creating registration DLLs for EventSources in C:\path\to\project\bin\Debug\MyApp.dll
1>C:\path\to\packages\Microsoft.Diagnostics.Tracing.EventRegister.1.1.28\build\Microsoft.Diagnostics.Tracing.EventRegister.targets(132,5): error MSB3073: The command ""C:\path\to\packages\Microsoft.Diagnostics.Tracing.EventRegister.1.1.28\build\eventRegister.exe" -DumpRegDlls @"C:\path\to\project\bin\Debug\MyApp.eventRegister.rsp" "C:\path\to\project\bin\Debug\MyApp.dll" " exited with code 1.
The below error occurs after adding the following NuGet packages to a .Net project:
This error can occur under either of the following conditions:
EventSourceLogger
class is decorated with anEventAttribute
with anEventChannel
other thanNone
.EtwManifestForceAll
is set totrue
.