Skip to content

Change Add-Type -OutputType to not support ConsoleApplication and WindowsApplication #6499

@daxian-dbw

Description

@daxian-dbw

Summary of the new document or enhancement

Description of what changed

This is related to #6417

The output assembly type ConsoleApplication and WindowsApplication doesn't work with Add-Type -OutputType today.
Per the conclusion of the powershell committee, this PR changes Add-Type -OutputType to throw terminating error when either ConsoleApplication or WindowsApplication is used.

Metadata

Metadata

Assignees

Labels

area-utilityArea - Microsoft.PowerShell.Utility module

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions