TFS Build Error: CSC : fatal error CS0042: Unexpected error creating debug information file 'xxxx.PDB'

CSC : fatal error CS0042: Unexpected error creating debug information file 'xxxx.PDB' -- 'c:Buildsxxxx.pdb: The process cannot access the file because it is being used by another process.

查看了详细的Build Log, 发现了同样的一文件被build了两次。

原因是 Solution 中的 Project A build使用了文件夹 A, Project B 引用了 Project C, 而 Project C 也使用了文件夹A.

即 两个 Project 同时 build 在同一个文件夹里。 

原文地址:https://www.cnblogs.com/fdyang/p/4321508.html