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;








1















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 and dotnet 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.










share|improve this question
































    1















    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 and dotnet 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.










    share|improve this question




























      1












      1








      1








      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 and dotnet 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.










      share|improve this question
















      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 and dotnet 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






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      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

























          1 Answer
          1






          active

          oldest

          votes


















          1















          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.






          share|improve this answer

























          • 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











          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
          );



          );













          draft saved

          draft discarded


















          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









          1















          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.






          share|improve this answer

























          • 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
















          1















          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.






          share|improve this answer

























          • 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














          1














          1










          1









          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.






          share|improve this answer













          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.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          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


















          • 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









          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.



















          draft saved

          draft discarded
















































          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.




          draft saved


          draft discarded














          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





















































          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







          Popular posts from this blog

          Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

          SQL error code 1064 with creating Laravel foreign keysForeign key constraints: When to use ON UPDATE and ON DELETEDropping column with foreign key Laravel error: General error: 1025 Error on renameLaravel SQL Can't create tableLaravel Migration foreign key errorLaravel php artisan migrate:refresh giving a syntax errorSQLSTATE[42S01]: Base table or view already exists or Base table or view already exists: 1050 Tableerror in migrating laravel file to xampp serverSyntax error or access violation: 1064:syntax to use near 'unsigned not null, modelName varchar(191) not null, title varchar(191) not nLaravel cannot create new table field in mysqlLaravel 5.7:Last migration creates table but is not registered in the migration table

          은진 송씨 목차 역사 본관 분파 인물 조선 왕실과의 인척 관계 집성촌 항렬자 인구 같이 보기 각주 둘러보기 메뉴은진 송씨세종실록 149권, 지리지 충청도 공주목 은진현