TFS Build targets and properties - the official list

For some time now people has been turning to me at my customer for answerers regarding TFS Build. I have learned a great deal from that but sometimes I feel like I haven’t made sure that I understood the underlying thought from Microsoft.

One of those areas is that the TFSBuild.proj-file is not your ordinary MSBuild-file. Or rather; it’s is but is run by Team Foundation Server and you get to configure it and it’s properties. This is what I though and I was actually right. Phew!

There are some properties and targets that you can override in order to customize the build process. You can think of these targets like events being fired, and you can hook into them and customize their actions. And this is quite easy once you know how.

But then I often get the question; “Ok - what can I configure”. I haven’t...

Read More

IPhone flute - waiting for euphonium

OK - this might be the coolest “useless” application I’ve seen… but it alone made me want an IPhone. Badly.

And here:
The cool thing is that Apple has create such a great mobile computing plattform. Telephony is just an application among others. Such as the flute. I am still waiting for the euphonium of course...
Read More

Swedish Brass Band Championships 2008 - the aftermath

The Swedish brass band movement has a new champion… The king is dead - long live the king!

Stockholm Brass Band is the new Swedish Brass band champions. And that’s a real chocker for most of us. WindCorp Brass Band has been leagues before Stockholm when I’ve heard them but somehow the managed to nick the title from WindCorp.

Don’t get me wrong - Stockholm is a great band with some truly amazing players (like Håkan Björkman for example). But WindCorp has loads of experience from many, many brass band competitions - something that there is not an abundance of in Stockholm.

My congratulations to Stockholm! Well deserved! And very impressive since the preparations has been surrounded with a lot sickness and problems to get a full band to rehearsals.

Read More

Swedish Brass Band Championships 2008

OK - it’s so late for this. They have probably started soon. But here is my predictions for the Swedish Brass Band championships:

The winner is almost obvious - Windcorp Brass band is the best band in Sweden now and for a long time ahead. They play so well and have loads of experience to go with it. They will win. Probably with a big margin as well.

Number two should be Stockholm Brass Band. They have the best line-up, but it consists of mostly professionals. And rehearsing for two weeks straight without pay is not the highest priority. Also it has been some sickness disturbing the preparations.

Solna Brass will most likely take the third place. But they are a dark horse to nick Stockholm at the first one. They meet every week and rehears very serious. They could do it.

So here is the probable...

Read More

Aspects and policy injection - clean up your code

The other thing that really has impressed me this week was the use of policy injection and aspect oriented programming in our code.

I mean - you write aspects (or policies) for things like logging, performance counters, caching and error handling and move all that stuff into configurable policies. What is left in your code?

Pure and beautiful business code (or at least problem domain code).

It’s so nice - we’re cleaning up code every day in our project and I just love to remove logging and error handling from my code and see my business code emerge from the muddy waters of “cross cutting concerns”.

This video opened my eyes for aspects. It’s for PostSharp which is another framework for doing aspects, but the concepts are shown clearly.

Read More

Agile testing - how we get it to work

This week I have made two discoveries that really has made me happy. They are not news by any means but I has been like they have clicked into place in my brain.

The first one is surrounding the subject of testing in agile projects, which a lot of people seems to have opinions about - but I haven’t heard anyone go: “Do like this!”. I suspect that it has to do with current testing process are rigid on many companies and there is a reluctantancy towards changing the quality assurance process. Also the amount of regression testing increases for each sprint.

We have had some trouble to get testing to work smoothly in our projects, but we are closing in on a solution. I do not claim to have the answerer or not even know much about the theories behind this big subject - but this works fine...

Read More

Blogging in two places - Avega Group Blog

Avega is starting up a corporate blog and have asked me to post some posts there. Sounds great so I have just posted in some items from www.marcusoft.net to my “Avega”-alias.

http://blog.avegagroup.se will not be live in a few weeks though, so keep cool until you can read me in … stereo. ;)

A few interesting questions arose:

Read More

Missing references showing nicely with ReSharper

I found a feature that I thought was bug in Visual Studio… If you have ReSharper (4.0 in my case) installed it shows your missing references directly in the .config-file.

Missing references showing with resharper

Of course there are limitations of this - secondary references cannot be resolved but it is still a great help. Unfortunately it confused me for a while thinking it was a bug in the config editor of Visual Studio. But I take that one on me.

Read More

Regular Expression for even number

Let me first be very clear - I’m not a RegExp-guy. I find them quite hard to understand at times and often take my refuge to the .NET-code.

Also I was very surprised to not find any hits for the search of “RegExp even numbers” - I thought that I would find numerous examples.

But after reading a bit at this place I learned enough to create my first own, naïve regular expression - a regular expression to allow only even numbers:

^\d*?((0)|(2)|(4)|(6)|(8))$

Again - my apologies for being a newbie on this… but hey it works.

I also found this resource very useful for trying my expression out.

Regular Expressions are very powerful but “with great powers comes great responsibilities”… that is they are often hard to understand.

Thanks Fredrik S for the links.

Read More