Hello @宏程 胡,
Welcome to Microsoft Q&A forum.
What type of project are you using? Is it a Win32 application? Try to create a new project, and directly run it, will the same error appear?
If you have multiple projects in your solution, please make sure that the project which you want to run has been correctly set as startup project(right-click your project => Set as Startup Project).
Besides, which version of VS and Windows OS are you using?
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.