Home > Archive > Visual Basic Addins > May 2006 > Acquiring loaded project's version from within VB IDE AddIn
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Acquiring loaded project's version from within VB IDE AddIn
|
|
| Mark J. McGinty 2006-04-22, 4:07 am |
| Is there really no way to do this? I looked all through the docs and object
browser, but couldn't find it.
Basically what I want to do is create a toolbar button that builds the
project, digitally signs built executable, updates an XML file to reflect
the executable's current version, and checks-in both the executable and the
XML to VSS.
I've got the button on the toolbar, it builds the project and it digitally
signs the executable. Changing the XML is easy enough but I can't seem to
read the version from the project.
So for the moment I have a little VBScript that prompts me for the version,
then fixes-up the XML; it's called from a batch that does the rest -- but it
seems sleazy, and is subject to occasional input flaws.
Any insight will be appreciated.
TIA,
Mark
| |
| Mark J. McGinty 2006-05-01, 10:12 pm |
| I ended-up writing a COM object in C++/ATL to read the version resource from
the compiled component. If anyone is interested in a copy, let me know.
-Mark
"Mark J. McGinty" <mmcginty@spamfromyou.com> wrote in message
news:u71QZPfZGHA.1348@TK2MSFTNGP05.phx.gbl...
> Is there really no way to do this? I looked all through the docs and
> object browser, but couldn't find it.
>
> Basically what I want to do is create a toolbar button that builds the
> project, digitally signs built executable, updates an XML file to reflect
> the executable's current version, and checks-in both the executable and
> the XML to VSS.
>
> I've got the button on the toolbar, it builds the project and it digitally
> signs the executable. Changing the XML is easy enough but I can't seem to
> read the version from the project.
>
> So for the moment I have a little VBScript that prompts me for the
> version, then fixes-up the XML; it's called from a batch that does the
> rest -- but it seems sleazy, and is subject to occasional input flaws.
>
> Any insight will be appreciated.
>
>
> TIA,
> Mark
>
|
|
|
|
|