The … package did not load correctly

This issue has happened to me repeatedly on Visual Studio 2019 and the package concerned has varied considerably, it appears to be related to when I uninstall extensions that it goes particularly bad. Sometimes when you open Visual Studio you get a number of these messages and the option to ignore the message in future doesn’t prevent it from recurring.

The solution to this is remarkably straightforward, firstly shutdown all instances of Visual Studio, then delete the ComponentModelCache folder which can be found in the following folder

C:\Users\<UserName>\AppData\Local\Microsoft\VisualStudio\16.xxx

the user name is your login name. You may find in the VisualStudio folder a number of folders that are 16.xxx — I just deleted the ComponentModelCache folder from the one that had been used most recently and all seemed fine.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Steve Ellwood

Senior Integrations Officer at Doncaster Council Any views expressed are entirely my own.