Well my builds have been migrated - but do they work? The short answer is NO they don't, for a variety of reasons.
Here comes the fun (or perhaps, irritating) bit, working out why none of the builds are working.
Firstly I have a Team Project that holds all of my custom Build Tasks, so this is the place to start:
- I opened my Build Task solution, and upgraded it to VS2010. The code successfully compiled.
- I have some unit tests, so I ran these. Well some of my tests failed.
- One of my custom Build Tasks uses the TFS object model - and it turns out that TFS object model has changed enough that my existing code won't work!
- This is annoying as we have a couple of internal applications that 'talk' to Team Foundation Server and now I will have to update them. This is additional expense that we were not expecting.
I have now spent a couple of days trying to get my migrated builds to work and come to the following conclusions:
- Any code using the TFS object model will have to be upgraded.
- Where there are only 32-bit versions of 3rd Party Assemblies, I will need to use a 32bit Build.
- My custom tasks just are not working properly even after upgrading to .NET 4.0. and using the TFS 2010 object Model.
- I either
- need to make my custom tasks work or
- I should start to use the new style builds and do my customising in the Workflow rather than MSBuild.
After a long discussion with my boss, we have decided to go with option b: Customise the workflow.
May 19 2010, 08:22 PM
A Note for Comment Spammers
Now, I realise that those of you who use blog comments such as these to
spread your worthless spam are not the cleverest people on the face of the planet.
So, I thought I'd make it clear that you're wasting your time posting your pointless
garbage here. Quite simply, it will never be published. Thankfully, unlike yourselves,
I'm blessed with an inherent ability to identify irrelevant content and it's every bit
as easy for me to toss your contribution into the virtual waste bin as it is to publish it.
So, guess what? Unless your comments are relevant (and I mean, really relevant, not
some thinly veiled attempt to get me to link to your site) they're never going to appear
on here. So, they're never go to appear in a search engine, never going to boost your
customer's Google page rank and never going to achieve anything in terms of Search
Engine Optimisation. Please, practice being a parasite elsewhere. Oh, and I'm confident
that my genuine readers are perfectly well endowed and enjoy a full and healthy lifestyle
without help from you. Thanks for reading.