Repro steps:
1. start nuget package manager
2. frequently switching between tabs
Expected: nuget loads packages fine
Actual: VS debugger is up (VS is crashing)
Call stack:
System.AggregateException was not treated.
Message = exception of a task were not monitored (either because of waiting for the task or because of access to the Exception property. Therefore unmonitored exception was thrown by finalizer thread again.
Source = mscorlib
Stack Trace:
at System.Threading.Tasks.TaskExceptionHolder.Finalize ()
InnerException: System.AggregateException
Message = At least one error has occurred.
Source = mscorlib
Stack Trace:
at System.Threading.Tasks.Task.ThrowIfExceptional (Boolean includeTaskCanceledExceptions)
at System.Threading.Tasks.Task `1.get_Result ()
at NuGet.Dialog.Providers.PackagesTreeNodeBase.QueryExecutionCompleted (Task `1 task)
at System.Threading.Tasks.Task `1 <> c__DisplayClass17. <ContinueWith> b__16 (Object obj)
at System.Threading.Tasks.Task.InnerInvoke ()
at System.Threading.Tasks.Task.Execute ()
InnerException: System.Threading.Tasks.TaskCanceledException
Message = A task was canceled.
InnerException:
1. start nuget package manager
2. frequently switching between tabs
Expected: nuget loads packages fine
Actual: VS debugger is up (VS is crashing)
Call stack:
System.AggregateException was not treated.
Message = exception of a task were not monitored (either because of waiting for the task or because of access to the Exception property. Therefore unmonitored exception was thrown by finalizer thread again.
Source = mscorlib
Stack Trace:
at System.Threading.Tasks.TaskExceptionHolder.Finalize ()
InnerException: System.AggregateException
Message = At least one error has occurred.
Source = mscorlib
Stack Trace:
at System.Threading.Tasks.Task.ThrowIfExceptional (Boolean includeTaskCanceledExceptions)
at System.Threading.Tasks.Task `1.get_Result ()
at NuGet.Dialog.Providers.PackagesTreeNodeBase.QueryExecutionCompleted (Task `1 task)
at System.Threading.Tasks.Task `1 <> c__DisplayClass17. <ContinueWith> b__16 (Object obj)
at System.Threading.Tasks.Task.InnerInvoke ()
at System.Threading.Tasks.Task.Execute ()
InnerException: System.Threading.Tasks.TaskCanceledException
Message = A task was canceled.
InnerException: