How to set the Default Team Project for a SharePoint site
You have probably created a SharePoint site after creating the Team Project and a receiving the error message:
"This site doesn’t have a default Team Project."
Solution
You have to configure the project portal using Visual Studio Team Explorer 2010 using Team Project Settings » Portal Settings…
More Information