DotCover.sh not working in Linux for dll.

Hello, 

I have used the command for executing a dll using DotCover using the following command in windows.

dotcover dotnet --StartInstance=1 --output=WebAppDLL.html --ReportType=HTML -- exec “pathToDll”

I am trying the same in Linux using Dotcover.sh after downloading command line installer for linux-x64

./dotCover.sh dotnet --StartInstance=1 --output=WebAppDLL.html --ReportType=HTML -- exec pathto.dll

But it gives me error.

 

The command could not be loaded, possibly because:
  * You intended to execute a .NET application:
      The application '/opt/jetbrains/dotCover.dll' does not exist.
  * You intended to execute a .NET SDK command:
      No .NET SDKs were found.

Download a .NET SDK:
https://aka.ms/dotnet/download

Learn about SDK resolution:
https://aka.ms/dotnet/sdk-not-found

[JetBrains dotCover] Coverage instance exited with exit code: 145

Can someone please help me regarding this?

0
2 comments

Hello, 

thank you for contacting us. 

It looks like the SDK is not installed in this case. Please try to launch your app from the command line without dotCover first. 

Thank you!

0
Hello Somanshu,
We've reproduced the issue and filled a ticket in YouTrack: https://youtrack.jetbrains.com/issue/DCVR-12685/StartInstance-is-not-processed-correctly-when-running-dotCover.sh
You are welcome to comment and follow to receive updates.
Thank you!
0

Please sign in to leave a comment.