XUnit2 not finding tests after upgrading to ASP.NET Core 1.1 RTM
See original GitHub issueafter 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:
- Created 7 years ago
- Comments:10 (6 by maintainers)
Top GitHub Comments
fixed this by adding “Microsoft.DotNet.InternalAbstractions” to the test project.json file.
Hope its not too late… just install this Microsoft.DotNet.InternalAbstractions and it will start working