Visual Studio正在锁定需要构建的可执行文件 [英] Visual Studio is locking the executable which needs to be built

查看:99
本文介绍了Visual Studio正在锁定需要构建的可执行文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图运行我正在使用的应用程序,Visual Studio有时不仅仅因为它锁定了可执行文件而无法构建项目:

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:

这是在Visual Studio的最后一次更新之后开始发生的,并非每次构建都发生,而仅仅是从不时。关闭并重新打开该解决方案可以暂时消除该错误,但经过几次构建后,它又回来了。

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.

我正在尝试构建一个包含更多DLL和一个WPF项目的解决方案,错误似乎在WPF上。

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

有人知道如何在VS 2017中解决此问题吗?

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

推荐答案

我已将 bin 文件夹添加到防病毒排除列表中,重新启动了计算机,现在看来可以使用了。几天以来,Visual Studio不再锁定可执行文件,因此@Hans Passant在评论中指出,这可能不是Visual Studio问题。

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.

这篇关于Visual Studio正在锁定需要构建的可执行文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆