Notice :
I ended up to a solution that works, I posted it in the answer section.
I recently updated Visual Studio 2022 (Community) to version 17.9.3, and now it no longer runs, I get this error:
Microsoft.ServiceHub.Utility.HostCrashException:
Failed to start host ‘dotnet.x64$IdentityHost’. Host exited with code ‘-1073741819’ (ErrorKind: HostExited) (ErrorKind: HostExited HResult: 80131500)
My OS: Windows 10
I tried multiple solutions recommended in both official and unofficial threads, like updating the .NET version, repairing VS, turning off antivirus, launching VS with custom commands, deleting VS ComponentModelCache etc.., no chance!
Some solutions helped to open the IDE,but just more errors came up, indicating that "Feature ‘…’ is currently unavailable due to an internal error." and then IDE crash happened.
Also installing the preview version didn’t help too,it just gave me another error AFTER opening VS indicating that the Microsoft.VisualStudio.Shell.Connected.UserInformation.UserInformation
package did not load correctly(causing crashes)
2
Answers
ok this is the solution that worked for me but before explaining it i would say this method worked for v2022 17.9.3 - Community edition, but this workflow may work in future versions too
(The original source of the method below is here)
Step 1:
Download .NET Core version 8.0.2 Binaries from the link below:
https://versionsof.net/core/8.0/8.0.2/
Step 2:
Navigate to this path (update the path with your current VS path if needed):
there is a folder with name
8.0.3
rename that folder to something else, like_8.0.3
(to hold it as a backup of the original one)Step 3:
open the downloaded archive,extract the folder
sharedMicrosoft.NETCore.App8.0.2
from it and place it to the path mentioned in step 2Step 4:
Rename the folder you got from tht archive at step 3 to
8.0.3
now try openning the Visual studio again and check if its working
Note 1:
Again, this solution worked for this specific version,if you face the similar problem in future versions,you may need to do the same thing but with different dotnet versions to fix it.
Note 2:
The source topic introduced a second solution,but to do the second method you must be able to open the VS for at least some seconds because changing something in options is needed.
Note 3:
If the mentioned way didn't help you,downloading an older version of VS like 2019 , might be a useful temporary solution,because obviusly this error came up in new version and older versions might work.
This solutions worked for me!!! But I had to replace the "8.0.3" folder with the renamed "8.0.2" in both the following path:
C:Program FilesMicrosoft Visual Studio2022Communitydotnetnet8.0runtimesharedMicrosoft.NETCore.App
C:Program FilesdotnetsharedMicrosoft.NETCore.App
If anyone have some issues, be sure to change the folder in both this path.