OT: Some news

OT: Some news

As you probably have noticed there have been no new posts, in english, for a while. Do not worry, i’m not dead :)

Right now my time is taken up by other occupations:

  • Change of job.
  • Articles for the press (in french).
  • A baby:)
I will return as soon as I find some free time :)
 
Carpe Diem.

TeamBuild 2010: UpdateAssemblyInfo activity sample

TeamBuild 2010: UpdateAssemblyInfo activity sample

As promized her is a sample of how i’m using the UpdateAssemblyInfo activity i’ve published on codeplex.

First let’s describe what we want:

  1. Increment the build number of my AssemblyFileVersion automatically for all the projects in a solution when doing a build. The major and minor versions of the AssemblyVersion and AssemblyFileVersion must not change and the revision number must be 0.
  2. Don’t modify the solution sources in TFS and let the developers do what they want.
  3. The BuildNumber of my build must contains the AssemblyFileVersion so that my build name, label and drop location are easily identifiable.
  4. Don’t modify the version numbers when doing a gated checkin or a private build.
  5. Be able to launch a build and specify to skip versionning.

Before updating our build template i’ll start by configuring my solution to make easier the versionning of all the projects. Let’s add a GlobalAssemblyInfo.cs (or .vb if you use VB.Net) file to the solution as a solution item:

read more →

TeamBuild 2010: Microsoft finally using his own build tools :)

TeamBuild 2010: Microsoft finally using his own build tools :)

Brian Harry just annouced on his blog that the Developer Division has made successfully it’s first end-to-end build of all Visual Studio using TeamBuild 2010. Here’s an other proof that it’s a great product.

As Brian says, Microsoft will now be able to test and find missing features to add for future versions.

Carpe Diem.

UpdateAssemblyInfo Activity for TeamBuild 2010

UpdateAssemblyInfo Activity for TeamBuild 2010

I’ve published on codeplex an activity which provides a way to manipulate the AssemblyVersion and AssemblyFileVersion values of AssemblyInfo files at build time under TeamBuild 2010: UpdateAssemblyInfo.

This activity supports the use of a pattern to specify how to update the AssemblyInfo files versions. the following tokens are dynamically replaced during execution:

  • $(current): uses the current value.
  • $(increment):increments the current value.
  • $(date<format>): uses the current date formatted with the specified <format>.
  • An integer: forces the value to the specified value.

The specified pattern must respect the version numbers form “A.B.C.D”. As an example, the pattern “$(current).$(current).$(increment).0″  keeps the current major and minor version, increments the build number and forces the revision to 0.

I’ll post an entry on an example of how to integrate this activity soon but for now i’ll recover for those past days heat (and the lack of sleep which goes with it :)). Stay tuned!

Carpe Diem.

VS 2010 : Custom graph dependency analyzer

VS 2010 : Custom graph dependency analyzer

After showing you how to customize IntelliTrace, i’ll show you today how you can create your own graph dependency analyzers for VisualStudio 2010 architecture tools.

Before starting here is another warning (still in bold and red so everyone sees it :) ):

Microsoft does not give any documentation or support on all that i will explain because even it’s possible, the functionality is not supported.

Now that you are warned lets start implementing a small analyzer which will show us all nodes starting with “Qetza.”.

First we create a class library and add the following assembly references:

  • Microsoft.VisualStudio.Progression.Common
  • Microsoft.VisualStudio.Progression.GraphModel
  • Microsoft.VisualStudio.Progression.Interfaces

These assemblies are in the sub directory “Common7\IDE\PrivateAssemblies” of your VisualStudio 2010 install directory (by default “C:\Program Files\Microsoft Visual Studio 10.0″).

read more →

Work Item Query Administration

Work Item Query Administration

I’ve published on codeplex a small command-line tool to administer work item queries: wiqadmin.

This tools, compatible with TFS 2008 and TFS 2010, supports the following commands:

  • List queries.
  • Export a query.
  • Import a query.
  • Rename (and/or move under TFS 2010) a query.
  • Delete a query (or a folder under TFS 2010).

The TFS 2010 version supports folders :)

Carpe Diem.

TeamBuild 2010 : Workflow Foundation 4.0 activities

TeamBuild 2010 : Workflow Foundation 4.0 activities

This post is part of a series on TeamBuild 2010:

It’s time i get back to my presentation of TeamBuild 2010 new features :)

Since TeamBuild is now based on Workflow Foundation 4.0 Microsoft has provided some activities specifically for TeamBuild. Those activities are like the Task in TeamBuild 2008 :

read more →

VS 2010 : Customize IntelliTrace events

VS 2010 : Customize IntelliTrace events

Today i’ll show you how to customize IntelliTrace in VisualStudio 2010 so that you can trace events from your own methods. But first some warnings (in bold and red so no one misses them :) ):

Microsoft does not give any documentation or support on all that i will explain. There is also a chance that the way you can  customize IntelliTrace will be revamp in the next version of VisualStudio (which might explain the lack of documentation and support).

Now that you’re warned let start and see how we can customize IntellTrace so that we can trace our own method calls! I’ll be using the following class for this post:

read more →

A true multilingual version of my blog

A true multilingual version of my blog

I finally installed the WordPress plug-in ZdMultilang to make my blog multilingual. There is no more FR and EN tag to differentiate posts. Here are the new functionalities:

  • The default language is French so you’ll have to update your bookmarks and feed readers (sorry).
  • To pass the all blog in English just select the language in the right menu.
  • A the end of each post there’s a link to view it in the other language.

To access my blog in English : http://blog.qetza.net/en/

The English feed url : http://blog.qetza.net/en/feed/

I’ve added permanent redirection on previous English posts to the new ones.

Carpe Diem

TeamBuild 2010 : Gated Check-in and Private Build

TeamBuild 2010 : Gated Check-in and Private Build

This post is part of a series on TeamBuild 2010:


What is a “Gated Check-in”? It’s a new type of build which is launched automatically every time a developer makes a check-in. But unlike continuous integration, a “Gated Check-in” will reject the check-in if the build is on error.

Technically, the “Gated Check-in” uses shelvesets. When a developer makes a check-i, Visual Studio will prompt him with a new dialog asking to shelve it’s modifications:

read more →