Closed austinlparker closed 5 years ago
I also get the following error when I run the task, regardless of if CoverletOutputFormat
is defined. - Calculating coverage result... /Users/austinparker/.nuget/packages/coverlet.msbuild/2.3.2/build/netstandard2.0/coverlet.msbuild.targets(27,5): error : Specified output format '0' is not supported [/Users/austinparker/workspace/lightstep-tracer-csharp/test/LightStep.Tests/LightStep.Tests.csproj]
Hi there,
I think it's due to the way that i'm turning the enumeration into a string to pass into the MsBuild task. I'll take a look at this later today, hopefully it should just be a case of using Invariant ToString() I don't have a mac to test it.
Would you be interested in trying a pre-release build to verify this works for you locally?
Sure, I can try the pre-release build.
Hi @austinlparker, i've merged this into master and it'll be released along with the Coverlet tool functionality in 2.0. Thanks for the contribution!
@austinlparker This has now been released. Please let me know if you have any issues.
Hi @Romanx,
I'm still getting the same error with the coverlet 2.2.1
I'm running it on Mac as well.
@giusepe How are including Cake.Coverlet in your cake file? Are you using #tool
directive?
Hi @Romanx,
Oh sorry, I forgot to link it before: https://github.com/reactiveui/punchclock/blob/update-ci-to-reactiveui/build.cake I'm not, and now that you mentioned, I think I should have....
When trying to use Cake.Coverlet, I get an intellisense error creating a
CoverletSettings
-The type 'Enum' is defined in an assembly that is not referenced. You must add a reference to assembly 'netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'. [build.cake]
The following is the task:
I'm using Cake 0.30 on MacOS with dotnet version 2.1.401.