我正在使用 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.
Run Code Online (Sandbox Code Playgroud)
看来作业甚至在调用 MSTest 之前就失败了。