Open pklima opened 4 years ago
I locally fixed this by including said dependency alongside the package but that just moved the problem elsewhere:
SetSite failed for package [IncludeToolboxPackage]Source: 'IncludeToolbox' Description: Method not found: 'Microsoft.VisualStudio.Threading.JoinableTaskFactory Microsoft.VisualStudio.Shell.ThreadHelper.get_JoinableTaskFactory()'. System.MissingMethodException: Method not found: 'Microsoft.VisualStudio.Threading.JoinableTaskFactory Microsoft.VisualStudio.Shell.ThreadHelper.get_JoinableTaskFactory()'. at IncludeToolbox.IncludeToolboxPackage.
d6.MoveNext() at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start[TStateMachine](TStateMachine& stateMachine) at IncludeToolbox.IncludeToolboxPackage.InitializeAsync(CancellationToken cancellationToken, IProgress`1 progress) at Microsoft.VisualStudio.Shell.AsyncPackage.<>cDisplayClass16_0.< b__1>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at Microsoft.VisualStudio.Services.VsTask.RethrowException(AggregateException e) at Microsoft.VisualStudio.Services.VsTask.InternalGetResult(Boolean ignoreUIThreadCheck) at Microsoft.VisualStudio.Services.VsTask.GetResult()
This seems to be a bug in the VS 2019 SDK: using JoinableTaskFactory.SwitchToMainThreadAsync()
unintentionally introduces a Microsoft.VisualStudio.Threading 6.0.0.0 dependency.
IncludeToolbox 2.4.1 is failing to load for me in Visual Studio 2017 15.6.7.
After starting Visual Studio and opening a
.cpp
file the following error appears:The aforementioned log file contains the following error:
To summarise the spam, it's trying and failing to load Microsoft.VisualStudio.Threading of version 15.8.0.0.
Looking at the extension files it doesn't actually ship any dependencies, perhaps it should?