Wrong version of powershell running in Visual Studio 2019 image.

Emil's Avatar

Emil

02 Mar, 2020 01:05 AM

According to the installed software table , Visual Studio 2019 image should have only pscore 6.2 installed.

but in my appveyor yaml:

image: Visual Studio 2019
configuration: Release
init:
  - ps: $PSVersionTable

prints :

$PSVersionTable
Name                           Value
PSVersion 5.1.17763.771
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.17763.771
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1

This causes some of my scripts to fail because they rely on pscore functionality.

  1. 1 Posted by Emil on 02 Mar, 2020 01:17 AM

    Emil's Avatar

    using - pwsh: seems to work.

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

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