New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Host.Version should return actual PowerShell version #708

Closed
ferventcoder opened this Issue Apr 24, 2016 · 0 comments

Comments

Projects
None yet
1 participant
@ferventcoder
Member

ferventcoder commented Apr 24, 2016

Right now it returns 0.9.10

@ferventcoder ferventcoder self-assigned this Apr 24, 2016

@ferventcoder ferventcoder added this to the 0.9.10 milestone Apr 24, 2016

ferventcoder added a commit that referenced this issue May 29, 2016

(GH-708) Retrieve generic registry values
Retrieve generic registry values from the registry, handling missing
values and providing a warning instead of an error if anything goes
wrong.

ferventcoder added a commit that referenced this issue May 29, 2016

(GH-708) PowerShell Host.Version Returns Actual
Previously, when calling `$host.version` using the built-in posh host,
the current version of Chocolatey would be returned. Depending on
`$host.version` is not a recommended best practice for PowerShell,
folks should depend on `$PSVersionTable` instead. However, not everyone
knows about best practices, so in practice folks are likely using
`$host.version` because it is easy to remember.

Due to the fact that some folks are using `$host.version` as a way of
building a compatibility check, ensure that choco returns the actual
version of PowerShell that is installed.

ferventcoder added a commit that referenced this issue May 29, 2016

Merge branch 'stable'
* stable:
  (GH-708) PowerShell Host.Version Returns Actual
  (maint) formatting
  (GH-708) Retrieve generic registry values
  (GH-198) pass configuration in messaging

@ferventcoder ferventcoder changed the title from Host.Version should return something useful to Host.Version should return actual PowerShell version May 30, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment