question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

XUnit2 not finding tests after upgrading to ASP.NET Core 1.1 RTM

See original GitHub issue

after upgrading project when I build test project I get this error:

Discovering tests in ‘X.Tests\project.json’ [“C:\Program Files\dotnet\dotnet.exe” test “X\Tests.Implementation\project.json” --output “D:\Workspace\X\Tests\bin\Debug\net462\win7-x64” --port 16573 --parentProcessId 8664 --no-build] ‘test-xunit’ returned ‘-532462766’.

when I execute dotnet test in command prompt it gave me this exception:

System.IO.FileNotFoundException was unhandled Message: An unhandled exception of type ‘System.IO.FileNotFoundException’ occurred in dotnet-test-xunit.exe Additional information: Could not load file or assembly ‘Microsoft.DotNet.InternalAbstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60’ or one of its dependencies. The system cannot find the file specified.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:10 (6 by maintainers)

github_iconTop GitHub Comments

7reactions
alsconsultingcommented, Nov 19, 2016

fixed this by adding “Microsoft.DotNet.InternalAbstractions” to the test project.json file.

0reactions
aammfecommented, Feb 12, 2017

Hope its not too late… just install this Microsoft.DotNet.InternalAbstractions and it will start working

Read more comments on GitHub >

github_iconTop Results From Across the Web

xunit failing after upgrading to .net core 1.1 · Issue #1031
Removing the line or switching back to "Microsoft.AspNetCore.Mvc.Core": "1.0.1" makes the unit tests discoverable in VS and pass without ...
Read more >
XUnit Tests no longer discovered in .Net Core 1.1
After I created a project with dotnet new xunit , I was able to create tests and run it with ReSharper Unit Test...
Read more >
too particular about .NET Core runtime version
Test Explorer recently stopped running my unit tests on the .NET Core runtime. Net472 tests still run fine. Looking at the Tests output ......
Read more >
Troubleshooting ASP.NET Core 1.1.0 install problems
In this post I show how I fixed some issues I encountered when installing the .NET Core 1.1.0 preview 1 SDK. The 1.1.0...
Read more >
How To Resolve Issue Of Test Project Not Running The ...
Introduction. I was upgrading the .NET Core 3.1 project to .NET 6 and faced issues running test cases in my test projects.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found