Link to home
Start Free TrialLog in
Avatar of DrDamnit
DrDamnitFlag for United States of America

asked on

Cannot get application publish version in vb.net 2008

I am trying to get this: System.Deployment.Application.ApplicationDeployment.CurrentDeployment.CurrentVersion

But the application namespace is not there. I just see System.Deployment.Internal. The object browser, however, shows me all the properties and methods of that namespace, but my app can't see it.

What am I missing?
Avatar of bhmahler
bhmahler
Flag of United States of America image

My.Application.Info.Version will give you your application version.
Avatar of DrDamnit

ASKER

Yes, but not the published version. My.application.info.version does not automatically increment when I do the clickonce publish.
ASKER CERTIFIED SOLUTION
Avatar of bhmahler
bhmahler
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial