How to properly define Keywords in Microsoft.Diagnostics.Tracing.EventSource?
问题 I am using the Microsoft.Diagnostics.Tracing.EventSource nuget package to write events to the eventlog. When defining keywords in my custom class inheriting from EventSource like this: public class Keywords { public const EventKeywords Page = ( EventKeywords ) 0x1; public const EventKeywords DataBase = ( EventKeywords ) 0x2; public const EventKeywords Diagnostic = ( EventKeywords ) 0x4; public const EventKeywords Perf = ( EventKeywords ) 0x8; } I get a manifest file containing the following