Welcome to Microsoft Q&A forum.
Can this issue be reproduced in other projects? Can this issue be reproduced in other projects? If you can reproduce it, try turning off your antivirus and firewall.
You can also use the Visual Studio installer to repair Visual Studio to prevent issues in Visual Studio
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.