Skip to content

EventSource subclass cannot be named <our namespace>.EventSource #45

@carpe7

Description

@carpe7

We have been struggling to find why our logging infrastructure based on ETW and System.Diagnostics.Tracing.EventSource didn't work on .NET Framework 4.6.1 but worked on .NET Framework 4.6.2.

We have found today that, apparently, the problem was caused by our EventSource class (not the public name set in EventSourceAttribute) being just named "our namespace".EventSource.

Now we are trying to find that constraint in the documentation, with no success.

Can anyone confirm there was such an undocumented restriction in .NET Framework 4.6.1 (removed in .NET Framework 4.6.2) for EventSource subclass names?

Thank you very much.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions