Duat, a developer on Team Foundation Build, has written a blog post on how to resolve post-upgrade issues with your build workflow if your 2010 build workflow uses custom workflow activities that use the TFS client object model.
Your custom assemblies need update, or else, redirecting Loading your custom assemblies in the TFS 11 build service process triggers loading TFS 2010 assemblies, and the Workflow Foundation (WF) services are not happy about that. Why? The build process template, for a particular reason, references the TFS OM assemblies by their simple names. When there are more than one version of the same assembly present in the process, the WF services, while loading and validating the build workflow, attempts to resolve the simple-name references with best effort, and in this case it decides to fail with a namespace ambiguity error. Here’s what you likely see when this issue occurs: TF215097: An error occurred while initializing a build for build definition \TFS\Build MAIN: The root element of the build process template found at $/TFS/BuildProcessTemplates/MainDefaultTemplate.xaml (version C182) is not valid. (The build process failed validation. Details: Validation Error: Compiler error(s) encountered processing expression "New Microsoft.TeamFoundation.Build.Workflow.Activities.BuildSettings()".'BuildSettings' is ambiguous in the namespace 'Microsoft.TeamFoundation.Build.Workflow.Activities'. more…
Your custom assemblies need update, or else, redirecting
Loading your custom assemblies in the TFS 11 build service process triggers loading TFS 2010 assemblies, and the Workflow Foundation (WF) services are not happy about that. Why?
The build process template, for a particular reason, references the TFS OM assemblies by their simple names. When there are more than one version of the same assembly present in the process, the WF services, while loading and validating the build workflow, attempts to resolve the simple-name references with best effort, and in this case it decides to fail with a namespace ambiguity error.
Here’s what you likely see when this issue occurs:
TF215097: An error occurred while initializing a build for build definition \TFS\Build MAIN: The root element of the build process template found at $/TFS/BuildProcessTemplates/MainDefaultTemplate.xaml (version C182) is not valid. (The build process failed validation. Details: Validation Error: Compiler error(s) encountered processing expression "New Microsoft.TeamFoundation.Build.Workflow.Activities.BuildSettings()".'BuildSettings' is ambiguous in the namespace 'Microsoft.TeamFoundation.Build.Workflow.Activities'.
more…
Richard Hundhausen pointed out this blog post recently, and I thought I’d mention it here. Rob Maher walks through the process of setting up a build definition to run only the tests that involve the code that was changed.
TFS 2010 Build - Only run impacted tests If your tests take a long time to run, you may wish to only run the tests that have been impacted by code changes checked in with the build (and of course run a full nightly build that executes all tests :) Unfortunately there is no out of the box feature to do this, so we need to edit our build xaml to do it. more…
TFS 2010 Build - Only run impacted tests
If your tests take a long time to run, you may wish to only run the tests that have been impacted by code changes checked in with the build (and of course run a full nightly build that executes all tests :) Unfortunately there is no out of the box feature to do this, so we need to edit our build xaml to do it.
Over six years ago, I posted a sample on how to use the version control API. The API changed in TFS 2010, but I hadn’t updated the sample. Here is a version that works with 2010 and newer and is a little less aggressive on clean up in the finally block.
This is a really simple example that uses the version control API. It shows how to create a workspace, pend changes, check in those changes, and hook up some important event listeners. This sample doesn't do anything useful, but it should get you going.
You have to supply a Team Project as an argument.
The only real difference in this version is that it uses the TeamFoundationServer constructor (in beta 3, you were forced to use the factory class).
You'll need to add references to the following TFS assemblies to compile this example.
Microsoft.TeamFoundation.VersionControl.Client.dll Microsoft.TeamFoundation.Client.dll
[UPDATE 3/12/12] Aaron pointed out Ewald's recent detailed blog post that walks through adding optional metadata beyond the MSDN article: http://blogs.msdn.com/b/visualstudioalm/archive/2012/03/06/get-your-agile-project-fixed-after-an-upgrade-from-tfs2010-to-tfs11-beta.aspx.
Team Foundation Server 11 Beta can be used to upgrade your existing TFS 2010 or 2008 server and used in production. We’ll be supporting upgrade from TFS 11 Beta to RC (you’ll very likely need to go from Beta to RC to RTM in order to follow the supported path). As Jason said in his beta blog post, TFS 11 beta is “go-live,” which means you can use it in production and receive support (details).
Once you upgrade your server, you’ll want to enable new features that require things like new work item types. We are working on changes that will hopefully make it easier for RC. Here’s the documentation you’ll need to make the necessary changes.
Updating an Upgraded Team Project to Access New Features After you upgrade to Visual Studio 11 Team Foundation Server Beta, you can still access the data from team projects that you created in the previous release. By downloading a localized zip file, extracting the files, and running the provided batch file of commands, you can update your team project to use the following new tools for managing the application lifecycle: Product Backlog, Sprint Backlog and Team Capacity, and Task Board and Burndown Charts Manage stakeholder feedback My Work and Conduct code reviews Hide specific types of work items so they don't appear in the drop-down menus that are used to create work items. read more…
After you upgrade to Visual Studio 11 Team Foundation Server Beta, you can still access the data from team projects that you created in the previous release. By downloading a localized zip file, extracting the files, and running the provided batch file of commands, you can update your team project to use the following new tools for managing the application lifecycle:
Product Backlog, Sprint Backlog and Team Capacity, and Task Board and Burndown Charts
Manage stakeholder feedback
My Work and Conduct code reviews
Hide specific types of work items so they don't appear in the drop-down menus that are used to create work items.
read more…
You must use the Visual Studio Team Explorer 2012 (included in all Visual Studio editions or may be separately downloaded) to create a team project on a TFS 2012 server. If you use VS 2010, you will get an error about not having permission. The error message is very misleading, because it’s not a problem with your permissions.
--------------------------- Microsoft Visual Studio --------------------------- TF30172: You do not have permission to create a new team project. --------------------------- OK Help ---------------------------