How do I get the version number of the Setup project?

M

Mark B

VSTO, OL2007, C#, VS2008.

The following code gets the version number of an Addin project for display
on a custom Help, About form.

lblVersionNo.Text =
Globals.ThisAddIn.GetType().Assembly.GetName().Version.ToString();

However, I need rather the version number of the Setup project (named
"MySetupProject") within the solution since that version number is the one
that is displayed under Control Panel, Add/Remove Programs.

Does anyone know what changes to the above code I would need to do in order
to get the setup project's value?

TIA
 
K

Ken Slovak - [MVP - Outlook]

You really should post this sort of question in a VS group, this has nothing
to do with Outlook programming.

You usually set the setup project to have the same versioning as your addin,
so what shows up in Add/Remove, etc. does match your addin version. Then you
can do proper installation updating.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top