Visual Studio is locking the executable which need

2019-07-23 11:00发布

I am trying to run the application on which I am working and from time to time Visual Studio is not able to build the project only because it is locking the executable:

enter image description here

This started to happen after the last update of Visual Studio and it does not happen every build but just from time to time. Closing and reopening the solution removes the error temporary but after a few more builds it comes back.

I am trying to build a solution containing more DLLs and one WPF project and the error seems to be on the WPF one.

Does anybody know how to solve this problem in VS 2017?

1条回答
Luminary・发光体
2楼-- · 2019-07-23 11:39

I have added the bin folder to the antivirus exclude list, restarted the machine and now it seems to work. For a couple of days Visual Studio is not locking anymore the executable so as @Hans Passant pointed in his comment, it may not be a Visual Studio problem.

查看更多
登录 后发表回答