$PSCmdlet.ShouldContinue method not available on Visual Studio 2017 image

mcbobke's Avatar


09 May, 2019 08:01 AM

Please see the attached log file. The method is as described here: https://docs.microsoft.com/en-us/dotnet/api/system.management.automation.cmdlet.shouldcontinue?view=powershellsdk-1.1.0#applies-to

I cannot call this method successfully during an AppVeyor build. What version of WMF is installed on this image? If it's not 5.1 can it please be updated to be as such?

  1. Support Staff 1 Posted by Owen McDonnell on 09 May, 2019 05:22 PM

    Owen McDonnell's Avatar

    As i understand it, WMF is not applicable to Windows server 2016 (which is what that image runs on).
    Powershell is already version 5.1 on all images.
    This may have to do with custom powershell host. Can you try to launch your script in a new instance of powershell via RDP

  2. 2 Posted by mcbobke on 09 May, 2019 08:50 PM

    mcbobke's Avatar

    I'll try this later tonight when I have some time. I'll reply back once I've been able to test.

  3. 3 Posted by mcbobke on 10 May, 2019 08:40 AM

    mcbobke's Avatar

    Running the build in a bare PowerShell host does call the intended function correctly. However, I'm going to work around this and will no longer have this issue (I'll be using a different function entirely). Thanks for the tip. Picture attached.

  4. Support Staff 4 Posted by Owen McDonnell on 10 May, 2019 02:10 PM

    Owen McDonnell's Avatar

    Ok, thanks for sharing your result.

  5. Owen McDonnell closed this discussion on 10 May, 2019 02:10 PM.

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

Keyboard shortcuts


? 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