You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 21, 2023. It is now read-only.
GitHub Extension for Visual Studio version: 2.2.1.0 (experimental)
Visual Studio version: 2015
What happened (with steps, logs and screenshots, if possible)
I opened the GitHubVS.sln and started experiencing random exceptions similar to this:
System.ComponentModel.Composition.CompositionContractMismatchException:
Cannot cast the underlying exported value of type
'Microsoft.VisualStudio.Composition.NetFxAdapters+MefV1ExportProvider+
ComposablePartForExportFactory' to type 'Microsoft.TeamFoundation.Controls.ITeamExplorerSection'.
at System.ComponentModel.Composition.ExportServices.CastExportedValue[T](ICompositionElement element, Object exportedValue)
at System.ComponentModel.Composition.ReflectionModel.ExportFactoryCreator.LifetimeContext.GetExportLifetimeContextFromExport[T](Export export)
at System.ComponentModel.Composition.ReflectionModel.ExportFactoryCreator.<>c__DisplayClass6_0`2.<CreateStronglyTypedExportFactoryOfTM>b__0()
at System.ComponentModel.Composition.ExportFactory`1.CreateExport()
at Microsoft.TeamFoundation.Controls.WPF.TeamExplorer.Framework.TeamExplorerSectionHost.Create()
The text was updated successfully, but these errors were encountered:
This is a strange and tricky to track down issue that is caused by dependencies from the opened solution being loaded into Visual Studio! It only seems to happen when Visual Studio is launched by opening a .sln file. The problem assemblies are copied to and loaded from the following location: %LOCALAPPDATA%\Microsoft\VisualStudio\14.0\ProjectAssemblies.
I accidentally disabled this method while refactoring and started seeing these exceptions again. I thought it would be a good idea to capture it here in case it ever starts happening again!
What happened (with steps, logs and screenshots, if possible)
I opened the
GitHubVS.sln
and started experiencing random exceptions similar to this:The text was updated successfully, but these errors were encountered: