I use this code for get application version
private string CurrentVersion
{
get
{
return ApplicationDeployment.IsNetworkDeployed
? ApplicationDeployment.CurrentDeployment.CurrentVersion.ToString()
: Assembly.GetExecutingAssembly().GetName().Version.ToString();
}
}
But in debug mode and when I publish and install application I get 1.0.0.0. How can I fix this problem?
Properties -> Application -> Assembly Information?