Tests builds version control

Ask general questions here.
User avatar
slavikf
Posts: 104
Joined: Mon Sep 13, 2010 9:07 pm
Location: Toronto, Canada
Contact:

Tests builds version control

Post by slavikf » Fri Jan 14, 2011 2:34 am

Q: How i set version number for my test EXE's?

Scenario:
We periodically release new versions of our application. Some functionality added or updated in new versions. Sometimes we have to come back and fork old version. So, we keep all version of test scripts, too (which updated with AUT, too)

So, i want compiled EXE to contain version number. How i do it?

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: Tests builds version control

Post by Support Team » Fri Jan 14, 2011 12:25 pm

Hi,

You can set the assembly version in the AssemblyInfo.cs file. There should be an entry named [assembly: AssemblyVersion("1.0.*")]. With this entry you can set the version number of your assembly.

Whole AssemblyInfo.cs file:
#region Using directives

using System;
using System.Reflection;
using System.Runtime.InteropServices;

#endregion

// General Information about an assembly is controlled through the following 
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("BetaTest")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("BetaTest")]
[assembly: AssemblyCopyright("Copyright 2011")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

// This sets the default COM visibility of types in the assembly to invisible.
// If you need to expose a type to COM, use [ComVisible(true)] on that type.
[assembly: ComVisible(false)]

// The assembly version has following format :
//
// Major.Minor.Build.Revision
//
// You can specify all the values or you can use the default the Revision and 
// Build Numbers by using the '*' as shown below:
[assembly: AssemblyVersion("1.0.*")]
Regards,
Peter
Ranorex Team
.
Image

User avatar
slavikf
Posts: 104
Joined: Mon Sep 13, 2010 9:07 pm
Location: Toronto, Canada
Contact:

Re: Tests builds version control

Post by slavikf » Fri Jan 14, 2011 7:32 pm

Just what i need 8)
Thank you...