ProviderInfo and CmdletInfo both have list formats that reference a non-existant AssemblyInfo property. They should be removed if there are no plans to add that property.
This is the code where the properties are added to the view.
|
.AddItemProperty(@"AssemblyInfo") |
|
.AddItemProperty(@"AssemblyInfo") |
Steps to reproduce
Get-PSProvider | Format-List
Get-Command Get-Command | Format-List
It "ProviderInfo should have AssemblyInfo property" {
Get-PSProvider | Get-Member -Name AssemblyInfo -Type Properties | Should -Not -BeNullOrEmpty
}
It "CmdletInfo should have AssemblyInfo property" {
Get-Command Get-Command | Get-Member -Name AssemblyInfo -Type Properties | Should -Not -BeNullOrEmpty
}
Expected behavior
No AssemblyInfo property shows up.
Actual behavior
Shows a AssemblyInfo property.
Environment data
Name Value
---- -----
PSVersion 7.1.0-preview.5
PSEdition Core
GitCommitId 7.1.0-preview.5
OS Microsoft Windows 10.0.19041
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3
ProviderInfoandCmdletInfoboth have list formats that reference a non-existantAssemblyInfoproperty. They should be removed if there are no plans to add that property.This is the code where the properties are added to the view.
PowerShell/src/System.Management.Automation/FormatAndOutput/DefaultFormatters/PowerShellCore_format_ps1xml.cs
Line 682 in ec20043
PowerShell/src/System.Management.Automation/FormatAndOutput/DefaultFormatters/PowerShellCore_format_ps1xml.cs
Line 696 in ec20043
Steps to reproduce
Expected behavior
No
AssemblyInfoproperty shows up.Actual behavior
Shows a
AssemblyInfoproperty.Environment data