Skip to content

Commit 36c06c9

Browse files
gautamdshethGautam Sheth
andauthored
Update PowerShell version requirement to 7.4.0 across documentation and scripts (#4947)
Co-authored-by: Gautam Sheth <gautam.sheth@staffbase.com>
1 parent 8432114 commit 36c06c9

File tree

9 files changed

+14
-13
lines changed

9 files changed

+14
-13
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
1515

1616
### Changed
1717
- Improved `Get-PnPTerm` cmdlet to show a better error message. [#4933](https://github.com/pnp/powershell/pull/4933)
18+
- **PnP PowerShell is now requires PowerShell 7.4.0 or newer**
1819

1920
### Fixed
2021
- Fix `Set-PnPView -Aggregations` parameter not showing aggregations in SharePoint online. [#4868](https://github.com/pnp/powershell/pull/4868)

MIGRATE-2.0-to-3.0.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Updating from PnP PowerShell 2.x to 3.x
22

3-
The 3.x version of PnP PowerShell is based exclusively on .NET 8.0, which means that it will not work on older PowerShell editions like PowerShell 5.1, ISE or PowerShell 7.3 or older. It will work only on **PowerShell 7.4.6 or later editions.**
3+
The 3.x version of PnP PowerShell is based exclusively on .NET 8.0, which means that it will not work on older PowerShell editions like PowerShell 5.1, ISE or PowerShell 7.3 or older. It will work only on **PowerShell 7.4.0 or later editions.**
44

55
## Steps to update from 2.x to 3.x
66

@@ -14,7 +14,7 @@ Or
1414

1515
- For Mac OS environments, please use [this link](https://learn.microsoft.com/en-us/powershell/scripting/install/installing-powershell-on-macos)
1616

17-
Once PowerShell 7.4.6 or later is downloaded and installed in your environment, you can install the PnP PowerShell module like you normally do.
17+
Once PowerShell 7.4.0 or later is downloaded and installed in your environment, you can install the PnP PowerShell module like you normally do.
1818

1919
```powershell
2020
Install-Module -Name "PnP.PowerShell"
@@ -28,7 +28,7 @@ Install-Module -Name "PnP.PowerShell" -AllowPrerelease
2828

2929
## Changes needed in Azure DevOps/GitHub Actions/Pipelines
3030

31-
If you are using PnP PowerShell in Azure Devops, GitHub Actions or other pipeline infrastructure, you will have to update your PowerShell version from v5 or v7.2.x to v7.4.6 or later.
31+
If you are using PnP PowerShell in Azure Devops, GitHub Actions or other pipeline infrastructure, you will have to update your PowerShell version from v5 or v7.2.x to v7.4.0 or later.
3232

3333
Recommend reading these 2 links:
3434

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ For more information about installing or upgrading to this module, please refer
1414

1515
## IMPORTANT - New PnP PowerShell 3.x
1616

17-
We released a new major version of PnP PowerShell, version 3 and upwards. This version of PnP PowerShell requires as of today PowerShell 7.4.6 or newer, and is based upon .NET 8.0.
17+
We released a new major version of PnP PowerShell, version 3 and upwards. This version of PnP PowerShell requires as of today PowerShell 7.4.0 or newer, and is based upon .NET 8.0.
1818

1919
We have created a [guide](https://github.com/pnp/powershell/blob/dev/MIGRATE-2.0-to-3.0.md) for upgrading from previous versions to PnP PowerShell 3.x. If you are still using PowerShell 5.1 or the ISE, and want to use the latest major or nightly release, you will need to specify the required version like below: 
2020

build/Build-Debug.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ if ($LASTEXITCODE -eq 0) {
172172
Author = 'Microsoft 365 Patterns and Practices'
173173
CompanyName = 'Microsoft 365 Patterns and Practices'
174174
CompatiblePSEditions = @('Core')
175-
PowerShellVersion = '7.4.6'
175+
PowerShellVersion = '7.4.0'
176176
ProcessorArchitecture = 'None'
177177
FunctionsToExport = '*'
178178
CmdletsToExport = @($cmdletsString)

build/Build-Nightly.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ if ($runPublish -eq $true) {
163163
GUID = '0b0430ce-d799-4f3b-a565-f0dca1f31e17'
164164
Author = 'Microsoft 365 Patterns and Practices'
165165
CompanyName = 'Microsoft 365 Patterns and Practices'
166-
PowerShellVersion = '7.4.6'
166+
PowerShellVersion = '7.4.0'
167167
ProcessorArchitecture = 'None'
168168
FunctionsToExport = '*'
169169
CmdletsToExport = @($cmdletsString)

build/Build-Release.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ if ($LASTEXITCODE -eq 0) {
9696
Author = 'Microsoft 365 Patterns and Practices'
9797
CompanyName = 'Microsoft 365 Patterns and Practices'
9898
CompatiblePSEditions = @('Core')
99-
PowerShellVersion = '7.4.6'
99+
PowerShellVersion = '7.4.0'
100100
ProcessorArchitecture = 'None'
101101
FunctionsToExport = '*'
102102
CmdletsToExport = @($cmdletsString)

pages/articles/installation.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Installing PnP PowerShell
22

3-
You need PowerShell 7.4.6 or later to use PnP PowerShell. It is available for Windows, Linux and Mac and can be [installed through here](https://learn.microsoft.com/powershell/scripting/install/installing-powershell).
3+
You need PowerShell 7.4.0 or later to use PnP PowerShell. It is available for Windows, Linux and Mac and can be [installed through here](https://learn.microsoft.com/powershell/scripting/install/installing-powershell).
44

55
## Stable build
66

@@ -34,7 +34,7 @@ docker run -it m365pnp/powershell
3434

3535
# Updating PnP PowerShell
3636

37-
If you already have PnP PowerShell installed and just want to update to the latest version you can follow these steps. If you're not sure if your version is already up to date, it does no harm to run it anyway. If there's no new version available, it will not do anything. You need PowerShell 7.4.6 or later to use PnP PowerShell. It is available for Windows, Linux and Mac and can be [installed through here](https://learn.microsoft.com/powershell/scripting/install/installing-powershell).
37+
If you already have PnP PowerShell installed and just want to update to the latest version you can follow these steps. If you're not sure if your version is already up to date, it does no harm to run it anyway. If there's no new version available, it will not do anything. You need PowerShell 7.4.0 or later to use PnP PowerShell. It is available for Windows, Linux and Mac and can be [installed through here](https://learn.microsoft.com/powershell/scripting/install/installing-powershell).
3838

3939
## Stable build
4040

src/Commands/PnP.PowerShell.Release.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
<PackageReference Include="PnP.Core.Auth" Version="1.15.0" />
5050
<PackageReference Include="PnP.Core.Admin" Version="1.15.0" />
5151
<PackageReference Include="Microsoft.Identity.Client.Extensions.Msal" Version="4.70.2" />
52-
<PackageReference Include="Microsoft.Bcl.Cryptography" Version="9.0.2" />
52+
<PackageReference Include="Microsoft.Bcl.Cryptography" Version="9.0.5" />
5353
<ProjectReference Include="..\ALC\PnP.PowerShell.ALC.csproj" />
5454
</ItemGroup>
5555

@@ -62,7 +62,7 @@
6262

6363

6464
<ItemGroup>
65-
<PackageReference Include="System.Management.Automation" Version="7.4.6" />
65+
<PackageReference Include="System.Management.Automation" Version="7.4.0" />
6666
<PackageReference Include="TextCopy" Version="6.2.1" />
6767
</ItemGroup>
6868

src/Commands/PnP.PowerShell.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
<PackageReference Include="PnP.Core.Admin" Version="1.15.*-*" Condition="'$(IsRelease)' == '1'" />
6767

6868
<PackageReference Include="Microsoft.Identity.Client.Extensions.Msal" Version="4.70.2" />
69-
<PackageReference Include="Microsoft.Bcl.Cryptography" Version="9.0.2" />
69+
<PackageReference Include="Microsoft.Bcl.Cryptography" Version="9.0.5" />
7070

7171
<ProjectReference Include="..\ALC\PnP.PowerShell.ALC.csproj" />
7272

@@ -107,7 +107,7 @@
107107
</ItemGroup>
108108

109109
<ItemGroup Condition="'$(TargetFramework)' == 'net8.0'">
110-
<PackageReference Include="System.Management.Automation" Version="7.4.6" />
110+
<PackageReference Include="System.Management.Automation" Version="7.4.0" />
111111
<PackageReference Include="TextCopy" Version="6.2.1" />
112112
</ItemGroup>
113113

0 commit comments

Comments
 (0)