How to use PowerShell 5 on Visual Studio 2016 and PowerShell Core 6 on Visual Studio 2019 and Ubuntu?
In the appveyor config file I'd like to use PowerShell 5 in Visual Studio 2016 images and PowerShell Core 6 in Visual Studio 2019 and Ubuntu images for tests. If I use PS, then PowerShell is used on both Visual Studio 2016 and 2019 and PowerShell Core on Ubuntu. How can I change to PowerShell Core on Visual Studio 2019 but keep PowerShell 5 for Visual Studio 2016?
The current appveyor.yml file can be found here:
https://github.com/NetApp-StorageGRID/S3-Client/blob/master/appveyor.yml
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

Support Staff 1 Posted by Feodor Fitsner on 02 Jan, 2020 10:23 PM
Hi Florian,
I can't suggest an easy hack for that, but you can switch to using
powershellandpwshcommands explicitly, kind of:Feodor Fitsner closed this discussion on 03 Apr, 2020 06:47 PM.