Global Directory
Global Directory
EXPLORE OUR SITES
London Stock Exchange Group
LSEG Data & Analytics
MyAccount
LSEG Perspectives
London Stock Exchange
FTSE Russell
LCH
Contact Us
Home
TR Internal
How does AssemblyInfo get versioned during build?
Timothy Sullivan
In C# projects there is an AssemblyInfo.cs file which controls the versions for the assembly. When a build is queued in TFS there is a process that runs that updates a line similiar to the following by using the current release, iteration and build numbers:
[assembly: AssemblyVersion("1.0.0.0")]
How exactly does CM do this? Is it a custom script in the build or is it a command on the MSBuild task? Looking at the logs the only this I see dealing with AssemblyInfo is that it removes the read-only attribute.
AfterGet:
Attrib -R AssemblyInfo.* /S
Find more posts tagged with
c#
msbuild
refinitiv-internal
Accepted answers
Timothy Sullivan
After getting access to a build box, it appears CM drops a file called TeamBuildParam.xml that is used to specify build parameters. This file parameters including the contains the major and minor version for the build.
majorVersion
24
minorVersion
0
startNumber
0
I am not sure if the *buildNumers* task is custom or built into to MSBuild.
All comments
Timothy Sullivan
Helpful link, but not answer:
http://tfsnpt.int.thomson.com/Sites/Cobalt TFS Central/Team Wiki/Wiki Pages/Build Numbering.aspx
Timothy Sullivan
After getting access to a build box, it appears CM drops a file called TeamBuildParam.xml that is used to specify build parameters. This file parameters including the contains the major and minor version for the build.
majorVersion
24
minorVersion
0
startNumber
0
I am not sure if the *buildNumers* task is custom or built into to MSBuild.
Quick Links
All Forums
Recent Questions
Terms of use
Privacy & Cookie Statement
Cookies settings
Do not sell my info
Whistleblowing
UK Bribery Act
Modern Slavery Act