-
Notifications
You must be signed in to change notification settings - Fork 223
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
testing removing consoleecho #988
testing removing consoleecho #988
Conversation
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.
LGTM, thanks @TylerLeonhardt!
Just some optional notes
/// <summary> | ||
/// True if we are running in PowerShell 7, false otherwise. | ||
/// </summary> | ||
public static bool IsPS7 { get; } = PSVersion.Major == 7; |
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.
Consider future proofing this somewhat by making it IsPS7OrGreater
. It doesn't really matter since we aren't using it, but could save us some trouble if it gets used somewhere.
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 like to keep this as IsPS7. I get the idea that PS8 will maybe be on .NET 5 which might have differences… not too mention that will be years out. Plus, if PS7 makes it back into Windows in a few years, maybe there will be a day where we drop IsPS5
so this file is certainly “living” anyway.
Co-Authored-By: Patrick Meinecke <[email protected]>
No description provided.