(VS'22) After installing the extension VS gives me the "package did not load correctly" error
See original GitHub issueI read in the release note that something with the cache creates this problem but it’s already my 10th time restarting VS and clearing caches that i don’t know what to do now
Here the error window:
And checking the logs it seems like it’s missing some files:
<entry>
<record>1998</record>
<time>2023/04/30 15:17:00.211</time>
<type>Error</type>
<source>VisualStudio</source>
<description>CreateInstance failed for package [MDKPackage]Source: 'mscorlib' Description: Could not load file or assembly 'System.Collections.Immutable, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
System.IO.FileNotFoundException: Could not load file or assembly 'System.Collections.Immutable, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
File name: 'System.Collections.Immutable, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
 at System.Reflection.RuntimeAssembly.GetType(RuntimeAssembly assembly, String name, Boolean throwOnError, Boolean ignoreCase, ObjectHandleOnStack type)
 at System.Reflection.RuntimeAssembly.GetType(String name, Boolean throwOnError, Boolean ignoreCase)
 at System.Activator.CreateInstanceFromInternal(String assemblyFile, String typeName, Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, Evidence securityInfo)
 at System.AppDomain.CreateInstanceFrom(String assemblyFile, String typeName)

WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
</description>
<guid>{7B9C2D3E-B001-4A3E-86A8-00DC6F2AF032}</guid>
<hr>0x80004005 - E_FAIL</hr>
<errorinfo></errorinfo>
</entry>
I thought that i might have missed some components during the installation process but it seems like I’ve got them all (it’s not only these but they are the required ones in the get started doc) Installed components:
- .NET desktop development
- .NET 4.6.1 targeting pack
- .NET 4.8.1 targeting pack
- .NET SDK
Issue Analytics
- State:
- Created 5 months ago
- Comments:18 (11 by maintainers)
Top Results From Across the Web
How can I fix the Microsoft Visual Studio error
Close all instances of Visual Studio · Go to: C:\Program Files (x86)\Microsoft SDKs\Windows · You should see a number of vX.0-like directories ( ......
Read more >"Package did not load correctly" · Issue #87
The problem may have been caused by a configuration change or by the installation of another extension. You can get more information by ......
Read more >Packaging Microsoft Visual Studio 2022 results in an error
Packaging Microsoft Visual Studio 2022 results in an error : "Global Hub Client Package did not load correctly caused by configuration ...
Read more >The 'CSharpPackage' package did not load correctly.
Every time i open a existing project or new project it shows 2 error message -The 'RoslynPackage' package did not load correctly., -The...
Read more >VS 2022 packages not loading correctly
The VA install appeared to go fine. However when I then launched Visual Studio, I received numerous 'package did not load correctly' alerts....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It’s too late for me to do anything now but I have one thing I can try. Will do so tomorrow.
All good now 😃