Msbuild TeamCity-进程无法访问文件*,因为其他进程正在使用该文件

Msbuild TeamCity-进程无法访问文件*,因为其他进程正在使用该文件,msbuild,nunit,teamcity,mstest,Msbuild,Nunit,Teamcity,Mstest,我正在使用TeamCity构建和运行我的MSTest项目 一个作业负责构建项目,一旦完成,它将触发第二个作业,负责使用MSTest运行已编译的项目 问题在于,当第二个作业几乎立即触发时,会显示以下错误,作业失败: Starting: C:\...\JetBrains.BuildServer.NUnitLauncher.exe ... ... ... The process cannot acces the file 'C:\BuildAgent\work\{identifier}' becau

我正在使用TeamCity构建和运行我的MSTest项目

一个作业负责构建项目,一旦完成,它将触发第二个作业,负责使用MSTest运行已编译的项目

问题在于,当第二个作业几乎立即触发时,会显示以下错误,作业失败:


Starting: C:\...\JetBrains.BuildServer.NUnitLauncher.exe
...
...
...
The process cannot acces the file 'C:\BuildAgent\work\{identifier}' because it is being used by another process.

似乎在调用MSTest之前作业就失败了。

如果您访问生成计算机,运行将帮助您诊断哪个进程保留在dll上。感谢您的回复,我尝试使用handle.exe,但似乎没有该特定文件夹的句柄