I\'m using Visual Studio 2010 and TFS 2010. Is there a way that dll version be automatically incremented with each TFS build?
Thanks
You can use Version task from msbuildtasks
Here's blog post by Jeremy Jameson with step-by-step instructions on how to use it.
I have a blog post on how to version your assemblies in TFS Build 2010: How to Create a Custom Workflow Activity for TFS Build 2010 RTM
Try TfsVersioning build definition. It can be alse extended with Nugetter to create a NuGet package and upload it to a repository.