Build Worker :: PowerShell 5.0

Hello,

I am working on a PowerShell project that requires the latest preview build of PowerShell 5.0 (April 2015). The "build worker software" page doesn't indicate which version of PowerShell is installed on the build worker image, however.

How can I ensure that PowerShell 5.0 is installed on my build worker? It requires a reboot, so can I have an "init" script that installs it, and reboots the build worker?

Cheers,
Trevor Sullivan
Microsoft MVP: PowerShell
http://trevorsullivan.net
http://twitter.com/pcgeek86

  1. Hi Trevor,

    PowerShell 5.0 (April 2015) is installed on unstable image.

  2. Feodor,

    Thanks for the quick response / pointer. I'll take a look at the `unstable` image.

    Cheers,
    Trevor Sullivan
    Microsoft MVP: PowerShell

  3. Feodor,

    Where are the docs that talk about the unstable image? I Google'd appveyor image yaml but don't see any references to the unstable image.

    http://www.appveyor.com/docs/build-configuration

    Cheers,
    Trevor Sullivan
    Microsoft MVP: PowerShell

  4. It's not documented mainly because unstable image is a place for installing any experimental/beta stuff.

    We'll re-do this image to have VS 2015 and then install PS 5.0 April update.

  5. I'm using Visual Studio 2015 image right now, but that contains Powershell Version 1 ?
    May you update it to at least version 3.0+ ?

    I really need Convert-FromJson

    Or is there other things I can use to convert a array string to an object in PS?

  6. The correct cmdlet name is 'ConvertFrom-Json' and it's available.

    - Feodor

  7. Second stupid mistake today, where is it going to end?

    Thanks Feodor, love your product! :-)

  8. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 02:01 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions