minato128 blog

minato128の公開メモ帳です。

VS2015 でユニットテスト実行したら 'test-xunit' returned '-532462766'.

'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.jsonMicrosoft.DotNet.InternalAbstractions の依存を追加したら解決。 VS の Output に例外の内容出せないのだろうか?