Hi Varpu,
Welcome to Microsoft Q&A forum.
Please try following:
- Reset Visual Studio settings(run in ).
devenv /ResetSettingsDeveloper Command Prompt for Visual Studio 2022
- Close VS > remove the hidden folder, and folders > launch VS and open your project.
.vsbinobj
- Reinstall the ASP.NET and web development workload from VS Installer > Modify > Workloads > uncheck the workload > Modify > check it again > Modify.
- Try to run command in , reproduce this issue and navigate to , open ActivityLog.xml file and check if there’s any detailed error message.
devenv /LogDeveloper Command Prompt for Visual Studio 2022%APPDATA%\Microsoft\VisualStudio\<Version>\ActivityLog.xml
Best Regards,
Zhengye
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.