Skip to content

Type description is not pulled in for OutputType target if type is in a separate DLL #12

@msorens

Description

@msorens

One specifies the output type of a cmdlet by decorating the cmdlet class with the OutputType attribute, having a single argument that is the type that the cmdlet returns. If that type is in the same project (DLL) then the Outputs section of the help content will report it.

Example: Given this source...

/// <summary>
/// <para type="description">Container for xyz.</para>
/// </summary>
public class MyData {... }

/// <summary>
/// <para type="description">Container for xyz.</para>
/// </summary>
[OutputType(typeof(MyData))]
public class Get-Foo: Cmdlet {... }

If MyData is in the same DLL as Get-Foo, then you get this help content:

OUTPUTS
MyData
    Container for xyz.

But if MyData is in a separate DLL, the description paragraph does not render.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions