You receive the following error message:
C:\WINDOWS\Microsoft.NET\Framework\v4.0\Microsoft.Common.targets(3246,9): error MSB3491: Could not write lines to file "obj\Release\abc.Common.vbproj.FileListAbsolute.txt". Access to the path ‘c:\TFS Builds\Sources\abc\obj\Release\abc.Common.vbproj.FileListAbsolute.txt’ is denied.
Possible Cause:
Have you checked in the "obj" and "bin" folders?
To resolve this issue:
- Delete the "obj" and "bin" folder in source control.
(usually those are not checked in) - Delete the "obj" and "bin" folders on your hard disk.
(they will be re-created during build)
Thanks …
Nice info
I’ve found the reason for this particular error (when building in VS2008 after getting a project from TFS) is because, for whatever reason, a duplicate of files are in the debug folder (ie, duplicate of “vbproj.FileListAbsolute.txt” and “vbproj.GenerateResource.Cache”). Renaming or deleting those two duplicated files gets rid of the error.
You need to delete the bin and obj folders from within Visual Studio.
thanks it is working peroperly with ur suggestion
and also we can achieve this by removing read only permission to that FileListAbsolute.txt files