在2017年TFS中,我们已经从旧的xaml构建定义转向了新的构建定义。当我们试图构建项目时,它会失败,并出现以下错误:
Starting: Build
******************************************************************************
Current agent version: '2.117.2'
******************************************************************************
Starting: Initialize Job
******************************************************************************
Prepare build directory.
One or more errors occurred. (One or more errors occurred. (The process cannot access the file 'E:\agent builds\agent1\1\s\Server\.vs\Server\v15\Server\sqlite3\db.lock' because it is being used by another process.)) (The process cannot access the file 'E:\agent builds\agent1\1\s\Server\.vs\Server\v15\Server\sqlite3\db.lock' because it is being used by another process.)
******************************************************************************
Finishing: Initialize Job
******************************************************************************
******************************************************************************
Finishing: Build
******************************************************************************为什么在构建时要锁定sqlite数据库?什么可以被配置错导致这种情况?
发布于 2019-01-09 07:15:42
我发现我们的一个开发人员最近在Visual 2017中在TFS服务器上手动构建了这个项目,即使VS被关闭,文件似乎也被它锁定了。TFS服务器的重新启动解决了这个问题。
发布于 2019-01-07 21:59:06
确保您没有签入不需要的文件和文件夹(即bin、obj和.vs文件夹)。为了排除这种情况,如果使用TFVC,可能需要使用.tfignore文件,如果使用git,则使用.gitignore文件。
发布于 2019-07-01 09:25:46
.vs及其中的文件不应该签入TFS。
https://stackoverflow.com/questions/54075035
复制相似问题