Hello @沈家本,
Welcome to Microsoft Q&A forum.
Please try following:
- Run Visual Studio as administrator and build the project.
- Try to use command line tools to compile your project and check if this works. You can search and use "Native Tools Command Prompt for VS 2022" from Windows Search box.
Besides, is this issue reproducible on a newly created project? If this issue is reproducible, please share us the detailed steps to reproduce it and 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.