Hello @#ilovedumsky ,
Welcome to Microsoft Q&A forum.
Please kindly check if your issue is similar to this issue An error was encountered while initializing templates. Looks like this is a “setup” issue, please try to repair Visual Studio 2019 from Visual Studio Installer > VS 2019 > More > Repair. If Repair
doesn’t work, perhaps you need to try to uninstall VS 2019 and then reinstall it.
Here are the steps for uninstalling VS manually
1). Manually delete the cache files and folders you previously installed to
C:\Program Files (x86)\Microsoft Visual Studio
%programdata%\Microsoft\visualstudio\packages
2). Delete the setup registry key which was set when you first installed (remember to make a backup)
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\VisualStudio\Setup
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\Setup
HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\VisualStudio\Setup
Re-image the computer should be the last resort, if this issue block you for a long time, you can try it.
Best Regards,
Tianyu
- If the answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.