sdk icon indicating copy to clipboard operation
sdk copied to clipboard

corehost.exe not throwing proper error while resolving run time dependency

Open mayabans opened this issue 10 years ago • 3 comments

A run time dependency for user dll was created on some another dll, and while resolving this dependency corehost.exe did not throw a proper Exception like System.IO.FileNotFoundException, but instead following error was thrown

Error: test-xunit returned '-532462766'.

Error: Error discovering tests in 'C:\Users\maban\Desktop\DotNetTooling_Latest\SampleProject\web\KWebDemo\KWebDemo\src\KTestingDemo\project.json'.
Exception: System.AggregateException: One or more errors occurred. ---> System.InvalidOperationException: test-xunit returned '-532462766'.
   --- End of inner exception stack trace ---
   at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
   at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
   at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout)
   at Microsoft.VisualStudio.ProjectSystem.DotNet.UnitTestAdapter.Discovery.HostExtensions.GetTests(IHost host, ITestCaseDiscoverySink discovery, IMessageLogger logger, KRuntimeConfiguration testConfiguration)
   at Microsoft.VisualStudio.ProjectSystem.DotNet.UnitTestAdapter.KUnitTestDiscoverer.GetTestCases(IEnumerable`1 sources, IMessageLogger logger, ITestCaseDiscoverySink discoverySink)
---> (Inner Exception #0) System.InvalidOperationException: test-xunit returned '-532462766'.<---

mayabans avatar Feb 22 '16 13:02 mayabans

@schellap

TheRealPiotrP avatar Feb 22 '16 16:02 TheRealPiotrP

Please reopen with better repro steps.

schellap avatar Apr 18 '16 09:04 schellap

I had the same error when I added : "Microsoft.Extensions.Configuration.Json": "1.0.0-rc2-final" as a dependecy in my project.json

blackhill avatar May 28 '16 15:05 blackhill