I'm using Visual Studio 2010 and TFS 2010. Is there a way that dll version be automatically incremented with each TFS build?
Thanks
Join Stack Overflow to learn, share knowledge, and build your career.
I'm using Visual Studio 2010 and TFS 2010. Is there a way that dll version be automatically incremented with each TFS build?
Thanks
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
AssemblyVersion
in AssemblyInfo.cs
without any error. In addition I didn't find anything in your sample code that indicates changes will be commit back on the source control. Also you blog post does not allow me to comment there.
– Afshar Mohebi
Jul 17 '10 at 7:56
WriteBuildWarning
just before calling ReplaceInFile
, so I'm sure ReplaceInFile
is executed. I just tried to use UpdateVersionInfo
instead but still no assembly is versioned. I have put the activity in Overal Build Process\ Run On Agent
just before Initialize Variables
activity. May this be the root cause of ReplaceInFile
and UpdateVersionInfo
not to function?
– Afshar Mohebi
Jul 17 '10 at 12:16
Try TfsVersioning build definition. It can be alse extended with Nugetter to create a NuGet package and upload it to a repository.
You can use Version task from msbuildtasks
Here's blog post by Jeremy Jameson with step-by-step instructions on how to use it.