4
I’m having a problem trying to get the publishing version of my application, I searched and found the following answer on SOEN how to show Publish version in a textbox?
I followed exactly the concept of the right answer but an exception is thrown when trying to get the version of the application.
Version CurrentVersion = ApplicationDeployment.CurrentDeployment.CurrentVersion;
String version = CurrentVersion.Major.ToString() + "." + CurrentVersion.Minor.ToString() + "." + CurrentVersion.Build.ToString() + "." + CurrentVersion.Revision.ToString();
the second example the version always comes 1.0.0.0 even if the version of Build is different :(
– Tuyoshi Vinicius