-
Notifications
You must be signed in to change notification settings - Fork 7.7k
Change Add-Type -OutputType
to not support ConsoleApplication
and WindowsApplication
#13440
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…dd-Type -OutputType
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd wait Ryslyn team answer. If they have not plans to fix this we can remove the code and add throw. Otherwise it is better to add ValidationSet attribute - less changes to revert.
Adding |
I mean we can use string values and add a comment with link to tracking issue. |
The changes in this PR is trivial, and reverting it when it needs to is also trivial, so I don't think we need to do it differently. |
@anmenaga I think this PR is ready to merge. |
We could keep #13344 open for tracking. |
🎉 Handy links: |
PR Summary
Related issue: #13344
The output assembly type
ConsoleApplication
andWindowsApplication
doesn't work withAdd-Type
today.Per the conclusion of the powershell committee, this PR changes
Add-Type -OutputType
to throw terminating error when eitherConsoleApplication
orWindowsApplication
is used.PR Checklist
.h
,.cpp
,.cs
,.ps1
and.psm1
files have the correct copyright headerWIP:
or[ WIP ]
to the beginning of the title (theWIP
bot will keep its status check atPending
while the prefix is present) and remove the prefix when the PR is ready.Add-Type -OutputType
to not supportConsoleApplication
andWindowsApplication
MicrosoftDocs/PowerShell-Docs#6499