Hi @Hong,
Welcome to Microsoft Q&A!
You can enable Task Manager Efficiency mode to reduce process interference.
Furthermore, you can use the Process Explorer or File Locksmith tools to check what process is locking the file.
Besides, for the issue, you can close all running VS instances and manually delete the bin and obj folders in your project folder. Then, re-launch the VS.
If you have any anti-virus software, please temporarily disable it.
Sincerely,
Anna
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.