here i got strucked on auto incrementation of version using c# ,iam trying to do it programatically but i could able to change version number in variables but iam not able to write it back as it is read only.Is there any alternative for this?.
my code is as follows.
string versionnum; int rev; int major; int minor; int build; Assembly assem = Assembly.GetExecutingAssembly(); AssemblyName assemName = assem.GetName(); applicationVersion = assemName.Version; major = Convert.ToInt32(applicationVersion.Major); minor = Convert.ToInt32(applicationVersion.Minor); build = Convert.ToInt32(applicationVersion.Build); rev = Convert.ToInt32(applicationVersion.Revision) + 1; versionnum = major+"."+minor+"." + build + "." + rev;