Build multiple ClickOnce deployment packages using MSBuild and Team City

Nov 3, 2009

The other day I posted about Build ClickOnce deployment packages using MSBuild and Team City, and there were some things that I didn’t like in my way of doing it.

I have multiple ClickOnce deployment packages created using TeamCity and MSBuild but each ClickOnce package has its own Application Revision due to the usage of TeamCity BUILD_NUMBER server build property.

So I changed to use TeamCity BUILD_VCS_NUMBER_<simplified VCS root name>

<ApplicationRevision>$(BUILD_VCS_NUMBER_MyApplication_Trunk)</ApplicationRevision>

And now all my ClickOnce packages have the same Application Revision which is better !