-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Closed
Description
Prerequisites
- Write a descriptive title.
- Make sure you are able to repro it on the latest released version
- Search the existing issues.
- Refer to the FAQ.
- Refer to Differences between Windows PowerShell 5.1 and PowerShell.
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:
- LangVersion is expected to be 10.0 instead of 9.0 - Updated it to 10.0 in powershell code.
- 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 successActual behavior
Powershell Build FailedError 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
Metadata
Metadata
Assignees
Labels
No labels