[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now


Cannot get application publish version in vb.net 2008

Posted on 2009-02-09
Medium Priority
Last Modified: 2012-08-14
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?
Question by:DrDamnit
  • 2

Expert Comment

ID: 23592916
My.Application.Info.Version will give you your application version.
LVL 32

Author Comment

ID: 23592929
Yes, but not the published version. My.application.info.version does not automatically increment when I do the clickonce publish.

Accepted Solution

bhmahler earned 1500 total points
ID: 23594102
Make sure you have a reference to System.Deployment.  Just goto Add Reference and select System.Deployment as it is not there by default.

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction As chip makers focus on adding processor cores over increasing clock speed, developers need to utilize the features of modern CPUs.  One of the ways we can do this is by implementing parallel algorithms in our software.   One recent…
Microsoft Reports are based on a report definition, which is an XML file that describes data and layout for the report, with a different extension. You can create a client-side report definition language (*.rdlc) file with Visual Studio, and build g…
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…

872 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question