CSC : fatal error CS0042: Unexpected error creating debug information file 'xxxx.PDB' -- 'c:\Builds\xxxx.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 在同一个文件夹里。
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步