I can't load my projects' DefaultTemplate.xaml file in the designer. (using VS2010 premium, recently reinstalled) When loading the DefaultTemplate.xaml from the build templates in TFS, I get an error saying that the activity cannot be loaded. There are errors loading the namespaces. Somehow it cannot find the assemblies needed for TFS. In the errors list I get about 50 complaints about these namespaces.
I've poked around in it, but never commited any changes. I've tried restoring the original version, but that didn't work. I've tried replacing the template with the DefaultTemplate.xaml from another project, but I got the same error. I'm at a loss here. How can I fix my VS2010 or template so I can edit it again using the designer? I can open other projects' DefaultTemplate.xaml files in the designer without any problems.
I suspect that it has to do with some setting in VS2010 or my project somehow not having the right references, but I can't figure out what's wrong or how to solve it.

Error 2 Assembly 'Microsoft.TeamFoundation.Common' was not found. Verify that you are not missing an assembly reference. Also, verify that your project and all referenced assemblies have been built. D:\files\work\Afstuderen Onno Filippo\BuildProcessTemplates\DefaultTemplate.xaml 4 14 Miscellaneous Files- Onno