powershell icon indicating copy to clipboard operation
powershell copied to clipboard

Fix the minimum powershell version requirement in the PSD1 file

Open colombeen opened this issue 2 years ago • 5 comments

Notice

Can't run PNP.PowerShell on Windows Powershell 5.1 because it seems like you dropped the support for it, but we can update the module to the latest version and then you don't even get a correct error why it's not working.

PSD1 can have a PowerShellVersion key with the minimum version required, which in turn would throw the correct error when trying to load the wrong version.

colombeen avatar Apr 24 '23 08:04 colombeen

Just bumped into this piece of info. With the key "CompatiblePSEditions" you can say that it only supports "Core"

colombeen avatar Apr 26 '23 11:04 colombeen

Shouldn't this be like a 10 second fix? We've automated the update process for all our modules and we had to create a special exception for the pnp.powershell module because of this problem.

ColomJa avatar Oct 27 '23 11:10 ColomJa

@ColomJa - This is a community driven repo. Meaning we also have day jobs and possibly unforeseen events. But please, feel free to contribute by submitting a PR, it'll be welcomed.

veronicageek avatar Oct 27 '23 19:10 veronicageek

@colombeen / @veronicageek - sorry, it’s on me. We have release automation in a separate repo.

We tried to fix it but ran into some issue a while back so didn’t go through with it.

Will absolutely try to fix it in upcoming release.

gautamdsheth avatar Oct 27 '23 21:10 gautamdsheth

@gautamdsheth, any updates?

colombeen avatar Jan 06 '24 00:01 colombeen

@colombeen - has been fixed with the latest 2.5.0 release, sorry it took so long.

image

gautamdsheth avatar Jun 28 '24 07:06 gautamdsheth