in .NET Framework

Could not write lines to file xxx.FileListAttribute.txt Access Denied

Using Visual Studio Team System Edition, you may come across this error when trying to build a solution

“Could not write lines to file xxx.FileListAttribute.txt.  Access is denied.”

Simple solution..delete the files from the obj directory, reload your solution and attempt to build.

Rember: Dont add obj/bin folders to your source safe, and these change so frequently!

References:

http://social.msdn.microsoft.com/forums/en-US/tfsbuild/thread/baa51174-0e51-445c-bef6-c2055788962d/