Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Request for Powershell preview release with .Net 6.0 Preview 7 #15914

Copy link
Copy link
@satya-rajesh

Description

@satya-rajesh
Issue body actions

Prerequisites

Steps to reproduce

The issue is related to the build which supports openssl 3.0.0.

As per dotnet team, .Net 6.0 preview 7 is having the openssl 3.0.0 support.

Compiled Powershell from https://github.com/PowerShell/PowerShell/releases/tag/v7.2.0-preview.8 with .Net 6.0 preview 7.
The expected result is supposed to build successful.

There are couple of issues observed:

  1. LangVersion is expected to be 10.0 instead of 9.0 - Updated it to 10.0 in powershell code.
  2. The following errors are observed next:
/usr/src/photon/BUILD/PowerShell-7.2.0/src/System.Management.Automation/FormatAndOutput/common/BaseCommand.cs(47,34): error CS0104: 'ExecutionContext' is an ambiguous reference between 'System.Management.Automation.ExecutionContext' and 'System.Threading.ExecutionContext' [/usr/src/photon/BUILD/PowerShell-7.2.0/src/System.Management.Automation/System.Management.Automation.csproj]
/usr/src/photon/BUILD/PowerShell-7.2.0/src/System.Management.Automation/engine/Modules/ModuleCmdletBase.cs(3685,47): error CS0104: 'ExecutionContext' is an ambiguous reference between 'System.Management.Automation.ExecutionContext' and 'System.Threading.ExecutionContext' [/usr/src/photon/BUILD/PowerShell-7.2.0/src/System.Management.Automation/System.Management.Automation.csproj]
/usr/src/photon/BUILD/PowerShell-7.2.0/src/System.Management.Automation/engine/Modules/ModuleSpecification.cs(262,57): error CS0104: 'ExecutionContext' is an ambiguous reference between 'System.Management.Automation.ExecutionContext' and 'System.Threading.ExecutionContext' [/usr/src/photon/BUILD/PowerShell-7.2.0/src/System.Management.Automation/System.Management.Automation.csproj]
/usr/src/photon/BUILD/PowerShell-7.2.0/src/System.Management.Automation/engine/hostifaces/History.cs(169,26): error CS0104: 'ExecutionContext' is an ambiguous reference between 'System.Management.Automation.ExecutionContext' and 'System.Threading.ExecutionContext' [/usr/src/photon/BUILD/PowerShell-7.2.0/src/System.Management.Automation/System.Management.Automation.csproj]
/usr/src/photon/BUILD/PowerShell-7.2.0/src/System.Management.Automation/engine/Modules/ModuleCmdletBase.cs(3756,57): error CS0104: 'ExecutionContext' is an ambiguous reference between 'System.Management.Automation.ExecutionContext' and 'System.Threading.ExecutionContext' [/usr/src/photon/BUILD/PowerShell-7.2.0/src/System.Management.Automation/System.Management.Automation.csproj]
/usr/src/photon/BUILD/PowerShell-7.2.0/src/System.Management.Automation/engine/Modules/ModuleCmdletBase.cs(3933,58): error CS0104: 'ExecutionContext' is an ambiguous reference between 'System.Management.Automation.ExecutionContext' and 'System.Threading.ExecutionContext' [/usr/src/photon/BUILD/PowerShell-7.2.0/src/System.Management.Automation/System.Management.Automation.csproj]
/usr/src/photon/BUILD/PowerShell-7.2.0/src/System.Management.Automation/engine/Modules/ModuleCmdletBase.cs(4678,71): error CS0104: 'ExecutionContext' is an ambiguous reference between 'System.Management.Automation.ExecutionContext' and 'System.Threading.ExecutionContext' [/usr/src/photon/BUILD/PowerShell-7.2.0/src/System.Management.Automation/System.Management.Automation.csproj]
/usr/src/photon/BUILD/PowerShell-7.2.0/src/System.Management.Automation/engine/Modules/ModuleCmdletBase.cs(4737,65): error CS0104: 'ExecutionContext' is an ambiguous reference between 'System.Management.Automation.ExecutionContext' and 'System.Threading.ExecutionContext' [/usr/src/photon/BUILD/PowerShell-7.2.0/src/System.Management.Automation/System.Management.Automation.csproj]
/usr/src/photon/BUILD/PowerShell-7.2.0/src/System.Management.Automation/engine/Modules/ModuleCmdletBase.cs(4774,87): error CS0104: 'ExecutionContext' is an ambiguous reference between 'System.Management.Automation.ExecutionContext' and 'System.Threading.ExecutionContext' [/usr/src/photon/BUILD/PowerShell-7.2.0/src/System.Management.Automation/System.Management.Automation.csproj]
/usr/src/photon/BUILD/PowerShell-7.2.0/src/System.Management.Automation/engine/Modules/ModuleCmdletBase.cs(6153,77): error CS0104: 'ExecutionContext' is an ambiguous reference between 'System.Management.Automation.ExecutionContext' and 'System.Threading.ExecutionContext' [/usr/src/photon/BUILD/PowerShell-7.2.0/src/System.Management.Automation/System.Management.Automation.csproj]
/usr/src/photon/BUILD/PowerShell-7.2.0/src/System.Management.Automation/engine/Modules/ModuleCmdletBase.cs(6888,54): error CS0104: 'ExecutionContext' is an ambiguous reference between 'System.Management.Automation.ExecutionContext' and 'System.Threading.ExecutionContext' [/usr/src/photon/BUILD/PowerShell-7.2.0/src/System.Management.Automation/System.Management.Automation.csproj]
/usr/src/photon/BUILD/PowerShell-7.2.0/src/System.Management.Automation/engine/Modules/ModuleCmdletBase.cs(7387,54): error CS0104: 'ExecutionContext' is an ambiguous reference between 'System.Management.Automation.ExecutionContext' and 'System.Threading.ExecutionContext' [/usr/src/photon/BUILD/PowerShell-7.2.0/src/System.Management.Automation/System.Management.Automation.csproj]
/usr/src/photon/BUILD/PowerShell-7.2.0/src/System.Management.Automation/FormatAndOutput/common/OutputManager.cs(196,57): error CS0104: 'ExecutionContext' is an ambiguous reference between 'System.Management.Automation.ExecutionContext' and 'System.Threading.ExecutionContext' [/usr/src/photon/BUILD/PowerShell-7.2.0/src/System.Management.Automation/System.Management.Automation.csproj]
/usr/src/photon/BUILD/PowerShell-7.2.0/src/System.Management.Automation/FormatAndOutput/common/OutputManager.cs(206,50): error CS0104: 'ExecutionContext' is an ambiguous reference between 'System.Management.Automation.ExecutionContext' and 'System.Threading.ExecutionContext' [/usr/src/photon/BUILD/PowerShell-7.2.0/src/System.Management.Automation/System.Management.Automation.csproj]
/usr/src/photon/BUILD/PowerShell-7.2.0/src/System.Management.Automation/FormatAndOutput/common/OutputManager.cs(244,45): error CS0104: 'ExecutionContext' is an ambiguous reference between 'System.Management.Automation.ExecutionContext' and 'System.Threading.ExecutionContext' [/usr/src/photon/BUILD/PowerShell-7.2.0/src/System.Management.Automation/System.Management.Automation.csproj]
/usr/src/photon/BUILD/PowerShell-7.2.0/src/System.Management.Automation/FormatAndOutput/common/BaseCommand.cs(139,17): error CS0104: 'ExecutionContext' is an ambiguous reference between 'System.Management.Automation.ExecutionContext' and 'System.Threading.ExecutionContext' [/usr/src/photon/BUILD/PowerShell-7.2.0/src/System.Management.Automation/System.Management.Automation.csproj]
/usr/src/photon/BUILD/PowerShell-7.2.0/src/System.Management.Automation/help/UpdatableHelpCommandBase.cs(218,69): error CS0104: 'ExecutionContext' is an ambiguous reference between 'System.Management.Automation.ExecutionContext' and 'System.Threading.ExecutionContext' [/usr/src/photon/BUILD/PowerShell-7.2.0/src/System.Management.Automation/System.Management.Automation.csproj]
/usr/src/photon/BUILD/PowerShell-7.2.0/src/System.Management.Automation/help/UpdatableHelpCommandBase.cs(277,91): error CS0104: 'ExecutionContext' is an ambiguous reference between 'System.Management.Automation.ExecutionContext' and 'System.Threading.ExecutionContext' [/usr/src/photon/BUILD/PowerShell-7.2.0/src/System.Management.Automation/System.Management.Automation.csproj]

Request to provide a Powershell preview release which supports .dot 6.0 preview 7 (which has the support for openssl 3.0.0)

Expected behavior

Powershell Build success

Actual behavior

Powershell Build Failed

Error details

There are couple of issues observed:
1) LangVersion is expected to be 10.0 instead of 9.0 - Updated it to 10.0 in powershell code.
2) The following errors are observed next:
/usr/src/photon/BUILD/PowerShell-7.2.0/src/System.Management.Automation/FormatAndOutput/common/BaseCommand.cs(47,34): error CS0104: 'ExecutionContext' is an ambiguous reference between 'System.Management.Automation.ExecutionContext' and 'System.Threading.ExecutionContext' [/usr/src/photon/BUILD/PowerShell-7.2.0/src/System.Management.Automation/System.Management.Automation.csproj]
/usr/src/photon/BUILD/PowerShell-7.2.0/src/System.Management.Automation/engine/Modules/ModuleCmdletBase.cs(3685,47): error CS0104: 'ExecutionContext' is an ambiguous reference between 'System.Management.Automation.ExecutionContext' and 'System.Threading.ExecutionContext' [/usr/src/photon/BUILD/PowerShell-7.2.0/src/System.Management.Automation/System.Management.Automation.csproj]
/usr/src/photon/BUILD/PowerShell-7.2.0/src/System.Management.Automation/engine/Modules/ModuleSpecification.cs(262,57): error CS0104: 'ExecutionContext' is an ambiguous reference between 'System.Management.Automation.ExecutionContext' and 'System.Threading.ExecutionContext' [/usr/src/photon/BUILD/PowerShell-7.2.0/src/System.Management.Automation/System.Management.Automation.csproj]
/usr/src/photon/BUILD/PowerShell-7.2.0/src/System.Management.Automation/engine/hostifaces/History.cs(169,26): error CS0104: 'ExecutionContext' is an ambiguous reference between 'System.Management.Automation.ExecutionContext' and 'System.Threading.ExecutionContext' [/usr/src/photon/BUILD/PowerShell-7.2.0/src/System.Management.Automation/System.Management.Automation.csproj]
/usr/src/photon/BUILD/PowerShell-7.2.0/src/System.Management.Automation/engine/Modules/ModuleCmdletBase.cs(3756,57): error CS0104: 'ExecutionContext' is an ambiguous reference between 'System.Management.Automation.ExecutionContext' and 'System.Threading.ExecutionContext' [/usr/src/photon/BUILD/PowerShell-7.2.0/src/System.Management.Automation/System.Management.Automation.csproj]
/usr/src/photon/BUILD/PowerShell-7.2.0/src/System.Management.Automation/engine/Modules/ModuleCmdletBase.cs(3933,58): error CS0104: 'ExecutionContext' is an ambiguous reference between 'System.Management.Automation.ExecutionContext' and 'System.Threading.ExecutionContext' [/usr/src/photon/BUILD/PowerShell-7.2.0/src/System.Management.Automation/System.Management.Automation.csproj]
/usr/src/photon/BUILD/PowerShell-7.2.0/src/System.Management.Automation/engine/Modules/ModuleCmdletBase.cs(4678,71): error CS0104: 'ExecutionContext' is an ambiguous reference between 'System.Management.Automation.ExecutionContext' and 'System.Threading.ExecutionContext' [/usr/src/photon/BUILD/PowerShell-7.2.0/src/System.Management.Automation/System.Management.Automation.csproj]
/usr/src/photon/BUILD/PowerShell-7.2.0/src/System.Management.Automation/engine/Modules/ModuleCmdletBase.cs(4737,65): error CS0104: 'ExecutionContext' is an ambiguous reference between 'System.Management.Automation.ExecutionContext' and 'System.Threading.ExecutionContext' [/usr/src/photon/BUILD/PowerShell-7.2.0/src/System.Management.Automation/System.Management.Automation.csproj]
/usr/src/photon/BUILD/PowerShell-7.2.0/src/System.Management.Automation/engine/Modules/ModuleCmdletBase.cs(4774,87): error CS0104: 'ExecutionContext' is an ambiguous reference between 'System.Management.Automation.ExecutionContext' and 'System.Threading.ExecutionContext' [/usr/src/photon/BUILD/PowerShell-7.2.0/src/System.Management.Automation/System.Management.Automation.csproj]
/usr/src/photon/BUILD/PowerShell-7.2.0/src/System.Management.Automation/engine/Modules/ModuleCmdletBase.cs(6153,77): error CS0104: 'ExecutionContext' is an ambiguous reference between 'System.Management.Automation.ExecutionContext' and 'System.Threading.ExecutionContext' [/usr/src/photon/BUILD/PowerShell-7.2.0/src/System.Management.Automation/System.Management.Automation.csproj]
/usr/src/photon/BUILD/PowerShell-7.2.0/src/System.Management.Automation/engine/Modules/ModuleCmdletBase.cs(6888,54): error CS0104: 'ExecutionContext' is an ambiguous reference between 'System.Management.Automation.ExecutionContext' and 'System.Threading.ExecutionContext' [/usr/src/photon/BUILD/PowerShell-7.2.0/src/System.Management.Automation/System.Management.Automation.csproj]
/usr/src/photon/BUILD/PowerShell-7.2.0/src/System.Management.Automation/engine/Modules/ModuleCmdletBase.cs(7387,54): error CS0104: 'ExecutionContext' is an ambiguous reference between 'System.Management.Automation.ExecutionContext' and 'System.Threading.ExecutionContext' [/usr/src/photon/BUILD/PowerShell-7.2.0/src/System.Management.Automation/System.Management.Automation.csproj]
/usr/src/photon/BUILD/PowerShell-7.2.0/src/System.Management.Automation/FormatAndOutput/common/OutputManager.cs(196,57): error CS0104: 'ExecutionContext' is an ambiguous reference between 'System.Management.Automation.ExecutionContext' and 'System.Threading.ExecutionContext' [/usr/src/photon/BUILD/PowerShell-7.2.0/src/System.Management.Automation/System.Management.Automation.csproj]
/usr/src/photon/BUILD/PowerShell-7.2.0/src/System.Management.Automation/FormatAndOutput/common/OutputManager.cs(206,50): error CS0104: 'ExecutionContext' is an ambiguous reference between 'System.Management.Automation.ExecutionContext' and 'System.Threading.ExecutionContext' [/usr/src/photon/BUILD/PowerShell-7.2.0/src/System.Management.Automation/System.Management.Automation.csproj]
/usr/src/photon/BUILD/PowerShell-7.2.0/src/System.Management.Automation/FormatAndOutput/common/OutputManager.cs(244,45): error CS0104: 'ExecutionContext' is an ambiguous reference between 'System.Management.Automation.ExecutionContext' and 'System.Threading.ExecutionContext' [/usr/src/photon/BUILD/PowerShell-7.2.0/src/System.Management.Automation/System.Management.Automation.csproj]
/usr/src/photon/BUILD/PowerShell-7.2.0/src/System.Management.Automation/FormatAndOutput/common/BaseCommand.cs(139,17): error CS0104: 'ExecutionContext' is an ambiguous reference between 'System.Management.Automation.ExecutionContext' and 'System.Threading.ExecutionContext' [/usr/src/photon/BUILD/PowerShell-7.2.0/src/System.Management.Automation/System.Management.Automation.csproj]
/usr/src/photon/BUILD/PowerShell-7.2.0/src/System.Management.Automation/help/UpdatableHelpCommandBase.cs(218,69): error CS0104: 'ExecutionContext' is an ambiguous reference between 'System.Management.Automation.ExecutionContext' and 'System.Threading.ExecutionContext' [/usr/src/photon/BUILD/PowerShell-7.2.0/src/System.Management.Automation/System.Management.Automation.csproj]
/usr/src/photon/BUILD/PowerShell-7.2.0/src/System.Management.Automation/help/UpdatableHelpCommandBase.cs(277,91): error CS0104: 'ExecutionContext' is an ambiguous reference between 'System.Management.Automation.ExecutionContext' and 'System.Threading.ExecutionContext' [/usr/src/photon/BUILD/PowerShell-7.2.0/src/System.Management.Automation/System.Management.Automation.csproj]

Environment data

Issue with Build.

Visuals

No response

Reactions are currently unavailable

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

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.