Click Once - How to get version
System.Deployment.Application. Then I get the error: Application Identity not set. What gives?
System.Deployment.Application. Then I get the error: Application Identity not set. What gives?
Hi Keith,
The property your are using is correct. Is you app ClickOnce deployed. You can try the following code to get the version
if
(System.Deployment.Application.ApplicationDeployment.IsNetworkDeployed){
string s = System.Deployment.Application.ApplicationDeployment.CurrentDeployment.CurrentVersion;Thanks,
Sameer