未能向文件“objDebugxx.csproj.FileListAbsolute.txt”写入命令行。对路径“C:xxobjDebugxx.csproj.FileListAbsolute.txt”的访问被拒绝。

从TFS上迁出一套代码,然后拷贝到另一个路径下。清理或者重新生成,都不成功,报错:

未能向文件“objDebugxx.csproj.FileListAbsolute.txt”写入命令行。对路径“C:xxobjDebugxx.csproj.FileListAbsolute.txt”的访问被拒绝。 

发现bin和obj都是只读的,删掉。重新编译,成功。

原文地址:https://www.cnblogs.com/gmth/p/3369868.html