Click here to Skip to main content
15,917,568 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
In my program publish version is properly incrementing each time i published.
But when i use to retrieve that publish version value it is giving 1.0.0.0 always
So how to get this incremented publish version??

What I have tried:

VB
If System.Deployment.Application.ApplicationDeployment.IsNetworkDeployed Then
 Dim ad = System.Deployment.Application.ApplicationDeployment.CurrentDeployment
 s1 = ad.CurrentVersion.ToString()      
 Dim name As String = "Registry Updater" + s1 //always it is giving 1.0.0.0 in name i,e assembly version.
End If
Posted
Updated 2-Nov-17 7:15am
v2

1 solution

VB
Application.ProductVersion

lol... It is that simple...
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900