how to automatically update assembly version in binding file

Topics: Bindings File, Settings Management and SSO, General Questions
Apr 16, 2013 at 7:48 PM
We are using TFS build, the assembly version and file version are automatically incremented each time by the engine. Quick question, please help, how can we somehow update the binding file automatically by the btdf to reflect the correct version number?

Apr 27, 2013 at 6:44 AM
I would strongly consider having the build update the AssemblyFileVersion and not the AssemblyVersion (more info). That will let you continue to see the specific build version in the DLL, but will not keep breaking assembly references.

If that is not an option, you could call an MSBuild task to replace the version numbers. Anything you can do with MSBuild you can do with the Deployment Framework. One example. You can call the task in an extensibility target.