Skip to content

Missing method with vstest integration #456

@clairernovotny

Description

@clairernovotny

Hi,

I'm trying to use the VSTest integration and getting the following:

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).

I'm using the .NET Core 3 SDK Preview 6 3.0.100-preview6-012262.

The test project has the following:

<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.1.1" />
<PackageReference Include="coverlet.collector" Version="1.0.0" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.1" />
<PackageReference Include="FluentAssertions" Version="5.6.0" />
<PackageReference Include="xunit" Version="2.4.1" />

I also tried with Microsoft.NET.Test.SDK 16.2.0-preview-20190606-02, which was just published 5 hours ago.

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs more infoMore details are neededquestionThis issue is a question

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions