错误:无法使以下项目可运行:此进程无法访问文件 ~/MyProject.exe' 因为它正被另一个进程使用



当我尝试编译并运行我的ASP.NET Core 1.0 visual Studio 2015上的项目时,我会收到以下错误:

Failed to make the following project runnable: MyProject (.NETFramework,Version=v4.6) reason: The process cannot access the file '~MyProject.exe' because it is being used by another process.
File: C:Program Files (x86)MSBuildMicrosoftVisualStudiov14.0DotNetMicrosoft.DotNet.Common.Targets

我不知道为什么会出现此错误。任何解决方案?

这是解决这个问题的愚蠢解决方案!我停止调试并关闭Visual Studio。然后我重新启动了计算机。重新启动计算机后再次打开Visual Studio后,我能够在没有任何错误的情况下运行该应用程序。

即使该应用程序已从Visual Studio停止,该过程似乎仍在后台运行。

来源:基本故障排除

最新更新