Skip to content

Improve exception message for sdk that doesn't support collectors #459

@MarcoRossignoli

Description

@MarcoRossignoli

Moved from #456 (comment)

@vagisha-nidhi's comment

Data collector 'XPlat code coverage' message: System.MissingMethodException: Method not found: '!!0 Microsoft.VisualStudio.TestPlatform.ObjectModel.DataCollection.SessionStartEventArgs.GetPropertyValue(System.String)'.
   at Coverlet.Collector.DataCollection.CoverletCoverageCollector.GetTestModules(SessionStartEventArgs sessionStartEventArgs)
   at Coverlet.Collector.DataCollection.CoverletCoverageCollector.OnSessionStart(Object sender, SessionStartEventArgs sessionStartEventArgs).

Should this message be replaced with something more informative (like using the correct sdk version)?

cc: @cltshivash @vagisha-nidhi @tonerdo

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementGeneral enhancement requestup-for-grabsGood issue for contributors

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions