I am trying to put the vesion of my app on the interface, I have used all 3 of the following to get the vesion
Windows.Forms.Application.ProductVersion.ToString
or
System.Diagnostics.FileVersionInfo.GetVersionInfo(System.Reflection.Assembly.GetExecutingAssembly.Location).ProductVersion
or
System.Reflection.Assembly.GetExecutingAssembly.GetName().Version.Major.ToString() & "." & System.Reflection.Assembly.GetExecutingAssembly.GetName().Version.Minor.ToString() & "." & System.Reflection.Assembly.GetExecutingAssembly.GetName().Version.Build.ToString()
They all work but when i build my app the ProductVersion is not changing i have also checked the exe and the version is also staying the same there to. How does vb.net increment the version, do you need to set it up somewhere. Could you please advise me on this, cause i need to display the version.
Thanks a lot.
Windows.Forms.Application.ProductVersion.ToString
or
System.Diagnostics.FileVersionInfo.GetVersionInfo(System.Reflection.Assembly.GetExecutingAssembly.Location).ProductVersion
or
System.Reflection.Assembly.GetExecutingAssembly.GetName().Version.Major.ToString() & "." & System.Reflection.Assembly.GetExecutingAssembly.GetName().Version.Minor.ToString() & "." & System.Reflection.Assembly.GetExecutingAssembly.GetName().Version.Build.ToString()
They all work but when i build my app the ProductVersion is not changing i have also checked the exe and the version is also staying the same there to. How does vb.net increment the version, do you need to set it up somewhere. Could you please advise me on this, cause i need to display the version.
Thanks a lot.