I have to display build version automatically without entering manually in windows form application, I have tried something like [assembly: AssemblyVersion("1.0.*")] in assemblyInfo.cs but its show like below,
{1.0.7145.41554} its looks awkward
I want show something like this [1.0.0.13] after published, but it always takes [1.0.0.1]
see the below image I want to show that version in view page actually
This is how I'm getting version; but it is returning [1.0.0.1]
//Get Version of the currently executing Assembly
var anm = System.Reflection.Assembly.GetExecutingAssembly().GetName().Version;
ExistingVersion = String.Format("{0}", anm);
EMajor = anm.Major;
EMinor = anm.Minor;
EBuildNo = anm.Build;
ERevisionNo = anm.Revision;
lblVersionv.Text = String.Format("Current Version : {0}", anm);
How I can do that?