-
Notifications
You must be signed in to change notification settings - Fork 7.7k
Restore the PowerShellStreamType enum with an ObsoleteAttribute #11836
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
Restore the PowerShellStreamType enum with an ObsoleteAttribute #11836
Conversation
CodeFactor issues are due to reusing previous documentation comments |
/// It is not used by any other PowerShell API, and is now obsolete | ||
/// and should not be used if possible. | ||
/// </remarks> | ||
[Obsolete("Formerly used in PowerShell Workflow. Use an integer or System.Management.Automation.Language.RedirectionStream instead.")] |
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.
Use an integer or System.Management.Automation.Language.RedirectionStream instead.
@TravisEz13 and I discussed on this message, and we think it's better to not give a workaround here given that those 2 enums have different members and values.
How about change the message to This enum type was used only in PowerShell Workflow and is now obsolete.
And make sure specify true
for the error
parameter.
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.
make sure specify true
for the error
parameter.
🎉 Handy links: |
PR Summary
Fixes #11619.
PR Context
Returns the
PowerShellStreamType
enum to code, since it was public, generically named and removed. Adds anObsoleteAttribute
to prevent new usage.