Object Reference not set to an instance with Coverlet dotnet coreWhat can I use for good quality code coverage for C#/.NET?VS2015 not compatible with dotnet-core cliVisual Studio 2017 install breaks Visual Studio 2015 ASP.NET Core ProjectsInstalling tools with dotnet core app using csproj files instead of project.jsonLost in versions and tools: .NET Core, Core Tools, dotnet Core CLI,Visual studio team services build .net core 1.1does kafka support dotnet core?netstandard2.0 (.net standard 2.0) class library cannot reference a net461 (.net framework 4.6.1) class libraryEntity Framework Core not compatible DotNet Core class library
Position a tabular on the corner of a slide
Immutable builder and updater
Examples of topos that are not ordinary spaces
Why in most German places is the church the tallest building?
Why are non-collision-resistant hash functions considered insecure for signing self-generated information
Non-visual Computers - thoughts?
Why do all fields in a QFT transform like *irreducible* representations of some group?
What would be the challenges to taking off and landing a typical passenger jet at FL300?
What is the difference between "Grippe" and "Männergrippe"?
Does norwegian.no airline overbook flights?
Is using a hyperlink to close a modal a poor design decision?
Is there any example of one country devastating a third?
How can I unambiguously ask for a new user's "Display Name"?
Are modern clipless shoes and pedals that much better than toe clips and straps?
Strange-looking FM transmitter circuit
Ensuring all network services on a device use strong TLS cipher suites
How do we calculate energy of food?
Justifying the use of directed energy weapons
Did a flight controller ever answer Flight with a no-go?
Why do gliders have bungee cords in the control systems and what do they do? Are they on all control surfaces? What about ultralights?
Did the British navy fail to take into account the ballistics correction due to Coriolis force during WW1 Falkland Islands battle?
Are there any elected officials in the U.S. who are not legislators, judges, or constitutional officers?
An interview question: What's the number of String objects being created?
Is gzip atomic?
Object Reference not set to an instance with Coverlet dotnet core
What can I use for good quality code coverage for C#/.NET?VS2015 not compatible with dotnet-core cliVisual Studio 2017 install breaks Visual Studio 2015 ASP.NET Core ProjectsInstalling tools with dotnet core app using csproj files instead of project.jsonLost in versions and tools: .NET Core, Core Tools, dotnet Core CLI,Visual studio team services build .net core 1.1does kafka support dotnet core?netstandard2.0 (.net standard 2.0) class library cannot reference a net461 (.net framework 4.6.1) class libraryEntity Framework Core not compatible DotNet Core class library
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I've recently installed coverlet 2.6.0 via the dotnet core CLI (command: dotnet add package coverlet.msbuild
) by following this guide: https://dev.to/deinsoftware/net-core-unit-test-and-code-coverage-with-visual-studio-code-37bp however I've run into issues running the first command:
dotnet test /p:CollectCoverage=true
When I run this in the root of my dotnet core application I get the following error:
C:Usersme.nugetpackagescoverlet.msbuild2.6.0buildnetstandard2.0coverlet.msbuild.targets(35,5):
error : Object reference not set to an instance of an Object.
[C:Usersme..myproj.csproj]
C:Usersme.nugetpackagescoverlet.msbuild2.6.0buildnetstandard2.0coverlet.msbuild.targets(35,5):
error : at Coverlet.MSbuild.Tasks.CoverageResultTask.Execute() in
/Users/toni/Workspace/coverlet/src/coverlet.msbuild.tasks/CoverageResultTask.cs:line
67 [C:Usersme..myproj.csproj]
I've tried the following to no avail:
- Close and reopen powershell
- Run
dotnet build
anddotnet restore
- Adding package references to the coverlet package in all of my .csproj files (though the one it was complaining about already had a reference for it, I assume from when it was installed)
I'm really stumped how to get it working, all other guides appear to be able to without issue. My project is running .NET Core 2.2.
EDIT [20/05/2019]
I managed to get this working by installing the references to Coverlet using Visual Studio as opposed to purely using the CLI. I'm unsure if this is specific to my (Windows) computer but thought I'd mention it here in case anyone else comes across the same thing.
.net-core code-coverage dotnet-test
add a comment |
I've recently installed coverlet 2.6.0 via the dotnet core CLI (command: dotnet add package coverlet.msbuild
) by following this guide: https://dev.to/deinsoftware/net-core-unit-test-and-code-coverage-with-visual-studio-code-37bp however I've run into issues running the first command:
dotnet test /p:CollectCoverage=true
When I run this in the root of my dotnet core application I get the following error:
C:Usersme.nugetpackagescoverlet.msbuild2.6.0buildnetstandard2.0coverlet.msbuild.targets(35,5):
error : Object reference not set to an instance of an Object.
[C:Usersme..myproj.csproj]
C:Usersme.nugetpackagescoverlet.msbuild2.6.0buildnetstandard2.0coverlet.msbuild.targets(35,5):
error : at Coverlet.MSbuild.Tasks.CoverageResultTask.Execute() in
/Users/toni/Workspace/coverlet/src/coverlet.msbuild.tasks/CoverageResultTask.cs:line
67 [C:Usersme..myproj.csproj]
I've tried the following to no avail:
- Close and reopen powershell
- Run
dotnet build
anddotnet restore
- Adding package references to the coverlet package in all of my .csproj files (though the one it was complaining about already had a reference for it, I assume from when it was installed)
I'm really stumped how to get it working, all other guides appear to be able to without issue. My project is running .NET Core 2.2.
EDIT [20/05/2019]
I managed to get this working by installing the references to Coverlet using Visual Studio as opposed to purely using the CLI. I'm unsure if this is specific to my (Windows) computer but thought I'd mention it here in case anyone else comes across the same thing.
.net-core code-coverage dotnet-test
add a comment |
I've recently installed coverlet 2.6.0 via the dotnet core CLI (command: dotnet add package coverlet.msbuild
) by following this guide: https://dev.to/deinsoftware/net-core-unit-test-and-code-coverage-with-visual-studio-code-37bp however I've run into issues running the first command:
dotnet test /p:CollectCoverage=true
When I run this in the root of my dotnet core application I get the following error:
C:Usersme.nugetpackagescoverlet.msbuild2.6.0buildnetstandard2.0coverlet.msbuild.targets(35,5):
error : Object reference not set to an instance of an Object.
[C:Usersme..myproj.csproj]
C:Usersme.nugetpackagescoverlet.msbuild2.6.0buildnetstandard2.0coverlet.msbuild.targets(35,5):
error : at Coverlet.MSbuild.Tasks.CoverageResultTask.Execute() in
/Users/toni/Workspace/coverlet/src/coverlet.msbuild.tasks/CoverageResultTask.cs:line
67 [C:Usersme..myproj.csproj]
I've tried the following to no avail:
- Close and reopen powershell
- Run
dotnet build
anddotnet restore
- Adding package references to the coverlet package in all of my .csproj files (though the one it was complaining about already had a reference for it, I assume from when it was installed)
I'm really stumped how to get it working, all other guides appear to be able to without issue. My project is running .NET Core 2.2.
EDIT [20/05/2019]
I managed to get this working by installing the references to Coverlet using Visual Studio as opposed to purely using the CLI. I'm unsure if this is specific to my (Windows) computer but thought I'd mention it here in case anyone else comes across the same thing.
.net-core code-coverage dotnet-test
I've recently installed coverlet 2.6.0 via the dotnet core CLI (command: dotnet add package coverlet.msbuild
) by following this guide: https://dev.to/deinsoftware/net-core-unit-test-and-code-coverage-with-visual-studio-code-37bp however I've run into issues running the first command:
dotnet test /p:CollectCoverage=true
When I run this in the root of my dotnet core application I get the following error:
C:Usersme.nugetpackagescoverlet.msbuild2.6.0buildnetstandard2.0coverlet.msbuild.targets(35,5):
error : Object reference not set to an instance of an Object.
[C:Usersme..myproj.csproj]
C:Usersme.nugetpackagescoverlet.msbuild2.6.0buildnetstandard2.0coverlet.msbuild.targets(35,5):
error : at Coverlet.MSbuild.Tasks.CoverageResultTask.Execute() in
/Users/toni/Workspace/coverlet/src/coverlet.msbuild.tasks/CoverageResultTask.cs:line
67 [C:Usersme..myproj.csproj]
I've tried the following to no avail:
- Close and reopen powershell
- Run
dotnet build
anddotnet restore
- Adding package references to the coverlet package in all of my .csproj files (though the one it was complaining about already had a reference for it, I assume from when it was installed)
I'm really stumped how to get it working, all other guides appear to be able to without issue. My project is running .NET Core 2.2.
EDIT [20/05/2019]
I managed to get this working by installing the references to Coverlet using Visual Studio as opposed to purely using the CLI. I'm unsure if this is specific to my (Windows) computer but thought I'd mention it here in case anyone else comes across the same thing.
.net-core code-coverage dotnet-test
.net-core code-coverage dotnet-test
edited May 20 at 15:39
Novastorm
asked Mar 27 at 17:35
NovastormNovastorm
7453 gold badges13 silver badges30 bronze badges
7453 gold badges13 silver badges30 bronze badges
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
The problem you have described could be caused by the 2.6.0 version.
Taken from this GitHub issue (tomap's response):
Append /p:Exclude="[xunit*]*"
to the command you are running.
Many thanks, I was missing this parameter however the actual issue was a bit bizarre in my case (see my update)
– Novastorm
May 20 at 15:37
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55383372%2fobject-reference-not-set-to-an-instance-with-coverlet-dotnet-core%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
The problem you have described could be caused by the 2.6.0 version.
Taken from this GitHub issue (tomap's response):
Append /p:Exclude="[xunit*]*"
to the command you are running.
Many thanks, I was missing this parameter however the actual issue was a bit bizarre in my case (see my update)
– Novastorm
May 20 at 15:37
add a comment |
The problem you have described could be caused by the 2.6.0 version.
Taken from this GitHub issue (tomap's response):
Append /p:Exclude="[xunit*]*"
to the command you are running.
Many thanks, I was missing this parameter however the actual issue was a bit bizarre in my case (see my update)
– Novastorm
May 20 at 15:37
add a comment |
The problem you have described could be caused by the 2.6.0 version.
Taken from this GitHub issue (tomap's response):
Append /p:Exclude="[xunit*]*"
to the command you are running.
The problem you have described could be caused by the 2.6.0 version.
Taken from this GitHub issue (tomap's response):
Append /p:Exclude="[xunit*]*"
to the command you are running.
answered Mar 28 at 11:04
Ciubotariu FlorinCiubotariu Florin
2,0863 gold badges16 silver badges27 bronze badges
2,0863 gold badges16 silver badges27 bronze badges
Many thanks, I was missing this parameter however the actual issue was a bit bizarre in my case (see my update)
– Novastorm
May 20 at 15:37
add a comment |
Many thanks, I was missing this parameter however the actual issue was a bit bizarre in my case (see my update)
– Novastorm
May 20 at 15:37
Many thanks, I was missing this parameter however the actual issue was a bit bizarre in my case (see my update)
– Novastorm
May 20 at 15:37
Many thanks, I was missing this parameter however the actual issue was a bit bizarre in my case (see my update)
– Novastorm
May 20 at 15:37
add a comment |
Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.
Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55383372%2fobject-reference-not-set-to-an-instance-with-coverlet-dotnet-core%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown