TfsVersion.SetVersion and MSBuild.ExtensionPack.VersionNumber.targets

Dec 18, 2008 at 1:28 PM
Why does TfsVersion's SetVersion task only update the AssemblyInfo file it gets to the temp build dir and not the version controlled one in TFS?

How does MSBuild.ExtensionPack.VersionNumber.targets work in combination with SetVersion?
Dec 18, 2008 at 1:42 PM

It's by design not to update TFS. see my thoughts here:!EC3C8F2028D842D5!404.entry and there is a Part 2 link there.

The MSBuild.ExtensionPack.VersionNumber.targets file is used by the AssemblyInfo task and has nothing to do with the TfsVersion task.

There are several versioning tasks in the pack and others available elsewhere. I think what may help is a blog post covering them all with explained benefits etc... I'll try get this out.