Skip to content

Error in Coverlet.Console 1.4.0 #274

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
StanleyGoldman opened this issue Dec 21, 2018 · 3 comments · Fixed by #286
Closed

Error in Coverlet.Console 1.4.0 #274

StanleyGoldman opened this issue Dec 21, 2018 · 3 comments · Fixed by #286

Comments

@StanleyGoldman
Copy link

I just started getting this on my build server. Seems like you just pushed an update.

fake : An exception occurred while invoking executor 'executor://xunit/VsTestRunner2/net': The type initializer for 
'Coverlet.Core.Instrumentation.Tracker.xunit.runner.visualstudio.testadapter_72850aea-b6e0-4804-a443-564a9e718190' threw an exception.
At line:1 char:1
+ fake run Build.fsx
+ ~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (An exception oc...w an exception.:String) [], RemoteException
    + FullyQualifiedErrorId : NativeCommandError
 
Could not l
oad file or assembly 'System.Runtime.Extensions, Version=4.2.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
Test Run Failed.
@tonerdo
Copy link
Collaborator

tonerdo commented Dec 21, 2018

HI @StanleyGoldman, what .NET runtime are you running on?

@gfoidl
Copy link

gfoidl commented Dec 25, 2018

Same issue here:

Host (useful for support):
  Version: 3.0.0-preview-27218-01
  Commit:  d40b87f29d
Error Message:
 System.TypeInitializationException : The type initializer for 'Coverlet.Core.Instrumentation.Tracker.gfoidl.Base64_ca953f4c-294c-4af4-87e9-cce811fc9369' threw an exception.
  ----> System.IO.FileNotFoundException : Could not load file or assembly 'System.Runtime.Extensions, Version=4.2.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
Stack Trace:
   at Coverlet.Core.Instrumentation.Tracker.gfoidl.Base64_ca953f4c-294c-4af4-87e9-cce811fc9369.RecordHit(Int32 )
   ...

coverlet.console 1.3.0 works fine.
coverlet.console 1.4.0 throws the above exception.

@alberto-riggi
Copy link

Hi,
I've got the same problem with coverlet.msbuild, when downgrading to the previous version the problem disappeared. Hope it helps.
Regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants