Skip to content

PowerShell SDK 7.6.0 - wrong $PSVersionTable.PSVersion #27065

@nightroman

Description

@nightroman

Prerequisites

Steps to reproduce

(1) Create and build an application hosting PowerShell SDK 7.6.0 (this scenario does not show the bug)
(1) Create an application which loads an assembly hosting PowerShell SDK 7.6.0 (addon scenario)

(2) Invoke some method in this assembly witch gets and returns $PSVersionTable

NB My existing app and addon are too complex to present here. I will try to build a simple demo app.
But I keep the issue, just in case the team has some ideas why this happens.

Expected behavior

`PSVersion` is 7.6.0

Actual behavior

`PSVersion` is 7.5.4

Environment data

Note: it shows the wrong version, it should show 7.6.0


Name                           Value
----                           -----
PSVersion                      7.5.4
PSEdition                      Core
GitCommitId                    7.5.4
OS                             Microsoft Windows 10.0.26200
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Visuals

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions