Skip to content

ProviderInfo/CmdletInfo list view references non-existent property #13311

@ThomasNieto

Description

@ThomasNieto

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.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-Code Cleanupthe issue is for cleaning up the code with no impact on functionalityResolution-FixedThe issue is fixed.WG-Enginecore PowerShell engine, interpreter, and runtime

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions