'test-xunit' returned '-532462766'.
なんだこれ?と思ってコマンドラインから dotnet test
を実行
Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.DotNet.InternalAbstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'. 指定されたファイルが見つかりません。 at Xunit.Runner.DotNet.Program.GetAvailableRunnerReporters() at Xunit.Runner.DotNet.Program.Run(String[] args) at Xunit.Runner.DotNet.Program.Main(String[] args) SUMMARY: Total: 1 targets, Passed: 0, Failed: 1.
project.json に Microsoft.DotNet.InternalAbstractions
の依存を追加したら解決。
VS の Output に例外の内容出せないのだろうか?
- 参考
- asp.net core - Error when using xunit with Microsoft.AspNetCore.Mvc 1.1.0 - Stack Overflow
- Error running "dotnet test" when "Microsoft.AspNetCore.Mvc" 1.1.0-preview1-final is included in dependencies · Issue #1015 · xunit/xunit · GitHub
- Getting started with xUnit.net (.NET Core / ASP.NET Core) > xUnit.net