MissingMethodException: Method not found
See original GitHub issueThis is the same error as #456 but I am unsure about the cause in my case.
I am using a dockerfile based on bionic 2.2, which should be DotNetCore 2.2.8 according to docker but when I run dotnet test, I get the error:
Data collector 'XPlat code coverage' message: [coverlet]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) in C:\Users\toni\Workspace\coverlet\src\coverlet.collector\DataCollection\CoverletCoverageCollector.cs:line 102.
I have installed the nuget package for coverlet at v1.1.0 and the test execution command line tool is 16.0.1
Issue Analytics
- State:
- Created 4 years ago
- Comments:8
Top Results From Across the Web
System.MissingMethodException: Method not found?
This is a problem which can occur when there is an old version of a DLL still lingering somewhere around. Make sure that...
Read more >MissingMethodException Class (System)
MissingMethodException is thrown when code in a dependent assembly attempts to access a missing method in an assembly that was modified. MissingMethodException ......
Read more >System.MissingMethodException - Method not found in C#
To fix the Method not found error in C#, ensure that the latest assemblies are deployed and no duplicate or older assemblies are...
Read more >MissingMethodException: Method not Found ASP.NET CORE
In this video, I am going to fix this issue in ASP.NET CORE: MissingMethodException : Method not Found : System.
Read more >System.MissingMethodException: Method not found: void . ...
This exception arose after upgrading to 16.6.0 preview 2. The source is Android platform project of Xamarin Forms solution. Debug information ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I just found another github issue about the 2.2 image not containing the correct CLI tools version and a massive complicated discussion about the complexity of docker images with multiple SDK/runtime combinations. I think for now, the only way forward for me is to upgrade the project to 3.1, which will probably work OK but has other implications since all of our projects are currently 2.2 and I don’t know how easily it will all “just work” in deployment if I upgrade them. I’ll close this for now.
Ok feel free to re-open if needed.