TFS 2010 ( MSB3021 ) unable to copy file..... could not find file.....

I am building a solution on TFS 2010 via automated build, solution contains six libraries and one website project. With every build i am facing following error :

C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v9.0\WebApplications\Microsoft.WebApplication.targets (60): Unable to copy file "obj\Debug\" to "C:\Builds\1\TestProject\TestProject\Binaries\_PublishedWebsites\\obj\Debug\". Could not find file 'obj\Debug\'.

Detailed log is also attached here.
Who is Participating?
manchAuthor Commented:
I worked around this and found solution that if you keep "obj" references in solution then it will throw these errors, so for successful automated builds on TFS 2010 you need to exclude "obj" folder & its dll references from the project/solution.

cheers :)
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.