Click-once deployment version number
I am using Click-Once deployment. How can I display the version number of my application on a label?
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Roei BarPosted Sep 24, 2009, 3:52 AM
You can access the ClickOnce version information programatically from the following namespace:
System.Deployment.Applicat
Of course you'd want to ensure that the application was actually deployed using ClickOnce before relying on that data by using something like:
System.Deployment.Applicat
I dont know of any way to automatically update the assembly version with the ClickOnce version (other than installing some sort of macro into Visual Studio). But that of course doesn't mean there isn't a way - perhaps someone else might be able to suggest one?
Hope this helps, let us know how you go,
patrickPosted Sep 24, 2009, 10:34 AM
Nir BarPosted Sep 24, 2009, 3:40 AM
You should use System.Windows.Fforms.Application.ProductVersion
This is a static property returning a String with the version number of your application
Please check "Accepted Answer" if this post helps you
Nir