-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Remove unsupported versions from PSCompatibleVersions
#18346
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
|
What is the actual purpose of Documentation says: "Versions of PowerShell that are compatible with the current version" |
This reverts commit b31695e.
1.0 and 2.0 from PSCompatibleVersionsPSCompatibleVersions
|
As PSv1 and PSv2 will be technically still supported, they will not be removed as part of this PR without confirmation from PowerShell committee. cc: @daxian-dbw |
4162924 to
8415e01
Compare
|
restarting tests |
|
This PR has Quantification details
Why proper sizing of changes matters
Optimal pull request sizes drive a better predictable PR flow as they strike a
What can I do to optimize my changes
How to interpret the change counts in git diff output
Was this comment helpful? 👍 :ok_hand: :thumbsdown: (Email) |
|
This pull request has been automatically marked as Review Needed because it has been there has not been any activity for 7 days. |
|
@PowerShell/powershell-committee Need the committee to review whether we want to make changes to the |
|
PS-Committee will discuss this today |
|
@PowerShell/powershell-committee discussed this. This member advertises compatibility (language, not cmdlets) and not support, so we recommend not making any changes to this member despite some older versions of PowerShell are no longer supported, they are still compatible if you have older scripts. Our request is to update the table to include only this information: PS> $psversiontable.PSCompatibleVersions
Major Minor Build Revision
----- ----- ----- --------
1 0 -1 -1
2 0 -1 -1
3 0 -1 -1
3 0 -1 -1
4 0 -1 -1
5 0 -1 -1
5 1 10032 0
6 0 -1 -1
7 0 -1 -1And I'll open a corresponding doc bug indicating that 6.0 and 7.0 means all minor versions are compatible (as [System.Version] requires a minor version element). |
|
I disagree with this PR as the value is for
This is meant to mean that code written for these prior versions of PowerShell is compatible with the current version of the PowerShell engine. Note I state engine, not modules or cmdlets/functions here.
This could be made clearer and should be raised as a documentation issue cc @sdwheeler / @michaeltlombardi |
Who and how uses the information in real world? Can anybody demonstrate a project/module where this is used? |
|
@iSazonov Here are the results when searching on grep.app: https://grep.app/search?q=PSCompatibleVersions @xtqqczze Can you please update this PR based on #18346 (comment) and #18346 (comment)?
|
I see only one tool where it is used https://github.com/icsharpcode/ILSpy/blob/master/BuildTools/update-assemblyinfo.ps1
|
|
This member was there probably since 1.0 and at that time, it was intended to be future proof in that the team may consider breaking changes to the language, however, it's probably not something scripts should use and instead should do feature detection and explicitly test against versions of PowerShell they want to support. With that said, we can't remove it for compat reasons, but if the |
|
Superseded by #18635. |


Remove the following unsupported versions from
$PSVersionTable.PSCompatibleVersions:The following versions were not removed as they are apparently still supported by Microsoft:
*Installed by default on Windows 10 version 1511, which is out-of-support since October 10, 2017. See Windows PowerShell System Requirements.