Jason Prickett has written a blog post summarizing issues and workarounds for problems encountered with TFS build when upgrading from TFS 2010 to TFS 2012.

Upgrading your build definitions from TFS2010 to TFS2012

Follow me on Twitter at twitter.com/tfsbuck