Skip to content

Debugger cannot find [System.Drawing.Color] when in script #219

@gerane

Description

@gerane

When debugging a script that contains a Color type it throws an error.

Example is using New-SlackMessageAttachment -Color $([System.Drawing.Color]::red)

Unable to find type [System.Drawing.Color].
+ New-SlackMessageAttachment -Color $([System.Drawing.Color]::red) `
+                                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (System.Drawing.Color:TypeName) [], RuntimeException
    + FullyQualifiedErrorId : TypeNotFound

Unable to find type [System.Drawing.Color].
+ ... SlackMessageAttachment -Color $([System.Drawing.Color]::LightGreen) `
+                                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (System.Drawing.Color:TypeName) [], RuntimeException
    + FullyQualifiedErrorId : TypeNotFound

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions