Add in version

Dec 1, 2010 at 8:34 PM

It would be super nice to expose the add in version in the powershell console say through a global variable.  That would help troubleshooting installation versions.  We have a ton of people with nuget installed and we are fighting bugsin nupack.. It would be nice to give a command to output the current addin version to a user.

 

Something like

$nugetVer

PM> 1.0.453.0

Coordinator
Dec 1, 2010 at 8:35 PM

Good idea. Log an issue.

From: erichexter [mailto:notifications@codeplex.com]
Sent: Wednesday, December 01, 2010 12:34 PM
To: Phil Haack
Subject: Add in version [nuget:236764]

From: erichexter

It would be super nice to expose the add in version in the powershell console say through a global variable. That would help troubleshooting installation versions. We have a ton of people with nuget installed and we are fighting bugsin nupack.. It would be nice to give a command to output the current addin version to a user.

Something like

$nugetVer

PM> 1.0.453.0

Read the full discussion online.

To add a post to this discussion, reply to this email (nuget@discussions.codeplex.com@discussions.codeplex.com)

To start a new discussion for this project, email nuget@discussions.codeplex.com@discussions.codeplex.com

You are receiving this email because you subscribed to this discussion on CodePlex. You can unsubscribe or change your settings on codePlex.com.

Please note: Images and attachments will be removed from emails. Any posts to this discussion will also be available online at codeplex.com

Dec 1, 2010 at 8:41 PM

No need. You can query the version through the $host property.

PM> $host

Name : Package Manager Host

Version : 1.0.0.0

InstanceId : 8be5ce75-ce25-4852-b29b-df79a4be4f22

UI : System.Management.Automation.Internal.Host.InternalHostUserInterface

CurrentCulture : en-US

CurrentUICulture : en-US

PrivateData : NuGetConsole.Host.PowerShellProvider.PowerShellHostProvider+Commander

IsRunspacePushed :

Runspace :

Dec 1, 2010 at 8:41 PM

done.

http://nuget.codeplex.com/workitem/421

Coordinator
Dec 1, 2010 at 8:42 PM

Even better. J

Developer
Dec 1, 2010 at 8:45 PM

Can't we just use the host like Luan said?

Coordinator
Dec 1, 2010 at 8:45 PM

Eric, I think we’ll probably close as “won’t fix” because of the $host property. Try that out and see if that is satisfactory.

Dec 1, 2010 at 8:51 PM

So why does the host say 1.0.0.0 and the extension manager say Version 0.2 ?

Dec 1, 2010 at 8:53 PM

Looks like there needs to be some plumbing code to wire up the correct version number. 

Dec 1, 2010 at 8:59 PM

The version displayed in $host is currently set to the Assembly version of the PowerShellHost asembly, but it can be changed to show any value.

Note that it's not trivial to get the version of the vsix at runtime (or at least I don't know yet)

Dec 1, 2010 at 9:01 PM

and if we maintain the vsix version to match assembly version (which we are doing), then it's not an issue.

Developer
Dec 1, 2010 at 10:26 PM

Right, now we always match vsix and assembly version so we're good.