Hello @Guglielmo Cancelli ,
Welcome to Microsoft Q&A forum.
Please try following to clean some cache files and fix any corrupted files first.
- Run CMD as administrator, run
DISM.exe /Online /Cleanup-image /Restorehealth
command, wait for it finishes running, runsfc /scannow
command. - Navigate to
C:\Users\{username}\AppData\Local\Microsoft\VisualStudio\17.0_XXXXXXXX
folder, rename this folder. - Reboot your machine and rename %Temp% folder(
C:\Users\{username}\AppData\Local\Temp
). - Update Windows OS and make sure that there’s no Windows Update Errors.
- Launch VS as administrator, create a new project and check again.
Besides, do you have full permissions on your machine(please check following: antivirus, group policy, permission limitations)? Does running VS as administrator work?
If there are more detailed error messages, please share them with us to check further.
Best Regards,
Tianyu
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
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.