How to set AssemblyInfo.cs based on the tfs project build number?

Posted by Ahok Rudraraju on Stack Overflow See other posts from Stack Overflow or by Ahok Rudraraju
Published on 2014-05-30T15:52:44Z Indexed on 2014/06/01 3:26 UTC
Read the original article Hit count: 122

Filed under:
|
|
|
|

The project is hosted on a tfs server and I need to access the build number which I assume is automatically generated when ever you build a project.

I need to retrieve that build number and display it on the web pages so that QAs and testing people know exactly which build they are working on.

I found how to create customize build numbers in the following link: http://msdn.microsoft.com/en-us/library/aa395241(v=vs.100).aspx

but it dose not solve my problem as I do not have access to the build definition file.

I am looking for some kind of post deployment task which can access the build number or may be generate one and probably write it down to a file, from where I can read it. I don't know if that makes any sense as this is my first time working on .Net

© Stack Overflow or respective owner

Related posts about c#

Related posts about ASP.NET