Skip to content

#requires -version 6.2 throws on 7.0.0-preview.1 #9938

Closed

Description

@bgelens

Steps to reproduce

Add a #requires version statement with 6.2 to a script and run on 7.0.0-preview.1

#requires -version 6.2

Expected behavior

works

Actual behavior

image

Environment data


Name                           Value
----                           -----
PSVersion                      7.0.0-preview.1
PSEdition                      Core
GitCommitId                    7.0.0-preview.1
OS                             Darwin 18.6.0 Darwin Kernel Version 18.6.0: Thu Apr 25 23:16:27 PDT 2019; root:xnu-4903.…
Platform                       Unix
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Activity

  1. added
    Issue-Question
    on Jun 19, 2019
  2. changed the title [-]#requires -version 6.02 throws on 7.0.0-preview.1[/-] [+]#requires -version 6.2 throws on 7.0.0-preview.1[/+] on Jun 19, 2019
  3. kvprasoon commented on Jun 19, 2019

    @kvprasoon
    Contributor

    Interesting, works only till 6.0, fails for 6.1/2.

  4. bgelens commented on Jun 19, 2019

    @bgelens
    ContributorAuthor

    After some digging I found this issue here I'll see if I can fix it myself

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-QuestionResolution-Fixed

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions