You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Minimum PowerShell Core version given by PowerShell Core support itself and
18
-
#also the version of NewtonSoft.Json implicitly that PSSA ships with,
19
-
#which cannot be higher than the one that PowerShell ships with.
20
-
[Version] $minimumPowerShellCoreVersion='6.2.4'
16
+
# the version of Nuget references, such as e.g. Newtonsoft.Json inside PowerShell itself
17
+
#or the version of the System.Management.Automation NuGet reference in PSSA.
18
+
21
19
if ($PSVersionTable.PSVersion-lt$minimumPowerShellCoreVersion) {
22
20
throw"Minimum supported version of PSScriptAnalyzer for PowerShell Core is $minimumPowerShellCoreVersion but current version is '$($PSVersionTable.PSVersion)'. Please update PowerShell Core."
Copy file name to clipboardExpand all lines: README.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -77,7 +77,7 @@ Exit
77
77
#### Supported PowerShell Versions and Platforms
78
78
79
79
- Windows PowerShell 3.0 or greater
80
-
- PowerShell Core 6.2 or greater on Windows/Linux/macOS
80
+
- PowerShell Core 7.0.3 or greater on Windows/Linux/macOS
81
81
- Docker (tested only using Docker Desktop on Windows 10 1809)
82
82
- PowerShell 6 Windows Image tags from [mcr.microsoft.com/powershell](https://hub.docker.com/r/microsoft/powershell). Example (1 warning gets produced by `Save-Module` but can be ignored):
83
83
@@ -141,9 +141,9 @@ Note: the PSScriptAnalyzer Chocolatey package is provided and supported by the c
141
141
```powershell
142
142
.\build.ps1 -PSVersion 3
143
143
```
144
-
* PowerShell Core
144
+
* PowerShell 7
145
145
```powershell
146
-
.\build.ps1 -PSVersion 6
146
+
.\build.ps1 -PSVersion 7
147
147
```
148
148
* Rebuild documentation since it gets built automatically only the first time
0 commit comments