Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).

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

### Fixed
- Fix `Set-PnPView -Aggregations` parameter not showing aggregations in SharePoint online. [#4868](https://github.com/pnp/powershell/pull/4868)
Expand Down
6 changes: 3 additions & 3 deletions MIGRATE-2.0-to-3.0.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Updating from PnP PowerShell 2.x to 3.x

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.**
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.**

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

Expand All @@ -14,7 +14,7 @@ Or

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

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.
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.

```powershell
Install-Module -Name "PnP.PowerShell"
Expand All @@ -28,7 +28,7 @@ Install-Module -Name "PnP.PowerShell" -AllowPrerelease

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

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.
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.

Recommend reading these 2 links:

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ For more information about installing or upgrading to this module, please refer

## IMPORTANT - New PnP PowerShell 3.x

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.
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.

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: 

Expand Down
2 changes: 1 addition & 1 deletion build/Build-Debug.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ if ($LASTEXITCODE -eq 0) {
Author = 'Microsoft 365 Patterns and Practices'
CompanyName = 'Microsoft 365 Patterns and Practices'
CompatiblePSEditions = @('Core')
PowerShellVersion = '7.4.6'
PowerShellVersion = '7.4.0'
ProcessorArchitecture = 'None'
FunctionsToExport = '*'
CmdletsToExport = @($cmdletsString)
Expand Down
2 changes: 1 addition & 1 deletion build/Build-Nightly.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ if ($runPublish -eq $true) {
GUID = '0b0430ce-d799-4f3b-a565-f0dca1f31e17'
Author = 'Microsoft 365 Patterns and Practices'
CompanyName = 'Microsoft 365 Patterns and Practices'
PowerShellVersion = '7.4.6'
PowerShellVersion = '7.4.0'
ProcessorArchitecture = 'None'
FunctionsToExport = '*'
CmdletsToExport = @($cmdletsString)
Expand Down
2 changes: 1 addition & 1 deletion build/Build-Release.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ if ($LASTEXITCODE -eq 0) {
Author = 'Microsoft 365 Patterns and Practices'
CompanyName = 'Microsoft 365 Patterns and Practices'
CompatiblePSEditions = @('Core')
PowerShellVersion = '7.4.6'
PowerShellVersion = '7.4.0'
ProcessorArchitecture = 'None'
FunctionsToExport = '*'
CmdletsToExport = @($cmdletsString)
Expand Down
4 changes: 2 additions & 2 deletions pages/articles/installation.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Installing PnP PowerShell

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).
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).

## Stable build

Expand Down Expand Up @@ -34,7 +34,7 @@ docker run -it m365pnp/powershell

# Updating PnP PowerShell

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).
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).

## Stable build

Expand Down
4 changes: 2 additions & 2 deletions src/Commands/PnP.PowerShell.Release.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
<PackageReference Include="PnP.Core.Auth" Version="1.15.0" />
<PackageReference Include="PnP.Core.Admin" Version="1.15.0" />
<PackageReference Include="Microsoft.Identity.Client.Extensions.Msal" Version="4.70.2" />
<PackageReference Include="Microsoft.Bcl.Cryptography" Version="9.0.2" />
<PackageReference Include="Microsoft.Bcl.Cryptography" Version="9.0.5" />
<ProjectReference Include="..\ALC\PnP.PowerShell.ALC.csproj" />
</ItemGroup>

Expand All @@ -62,7 +62,7 @@


<ItemGroup>
<PackageReference Include="System.Management.Automation" Version="7.4.6" />
<PackageReference Include="System.Management.Automation" Version="7.4.0" />
<PackageReference Include="TextCopy" Version="6.2.1" />
</ItemGroup>

Expand Down
4 changes: 2 additions & 2 deletions src/Commands/PnP.PowerShell.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
<PackageReference Include="PnP.Core.Admin" Version="1.15.*-*" Condition="'$(IsRelease)' == '1'" />

<PackageReference Include="Microsoft.Identity.Client.Extensions.Msal" Version="4.70.2" />
<PackageReference Include="Microsoft.Bcl.Cryptography" Version="9.0.2" />
<PackageReference Include="Microsoft.Bcl.Cryptography" Version="9.0.5" />

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

Expand Down Expand Up @@ -107,7 +107,7 @@
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'net8.0'">
<PackageReference Include="System.Management.Automation" Version="7.4.6" />
<PackageReference Include="System.Management.Automation" Version="7.4.0" />
<PackageReference Include="TextCopy" Version="6.2.1" />
</ItemGroup>

Expand Down
Loading