Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign uptesting removing consoleecho #988
Merged
Conversation
|
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; |
SeeminglyScience
Jul 9, 2019
Collaborator
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.
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.
TylerLeonhardt
Jul 9, 2019
Author
Member
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.
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.
f2c1159
into
PowerShell:master
8 checks passed
8 checks passed
PowerShellEditorServices-CI (PowerShell 5.1 | Windows 10)
PowerShell 5.1 | Windows 10 succeeded
Details
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
No description provided.