How do I control the version number and exe name using MSBUILD

Hi There,

I have just got TeamCity up and running and coping our C# code from CVS onto a server and doing a build.

Now I need to be able to control the name of the exe it builds and the version number.

This is what I found in the manifest after the build. The manifest was called Shape_SystemTest.exe.manifest

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:co.v1="urn:schemas-microsoft-com:clickonce.v1">
  <asmv1:assemblyIdentity name="Shape_SystemTest.exe" version="1.5.0.27" publicKeyToken="0000000000000000" language="neutral"


Need to be able to build for 4 different environments.

Shape_Developement.exe
Shape_SystemTest.exe
Shape_NodelOffice.exe
Shape.exe


Thanks

Angus

2 comments
Comment actions Permalink

Hi Agnus

In recently released TeamCity 6.5 we added AssemblyInfo Patcher feature that allows to set versions automatically.
File names can be specified in build configurations as build parameters, and referenced within MSBuild script.

Michael

0
Comment actions Permalink

Thanks Michael. I will investigate.

0

Please sign in to leave a comment.