PowerShellGetv2 icon indicating copy to clipboard operation
PowerShellGetv2 copied to clipboard

Add system version automatically

Open he852100 opened this issue 4 years ago • 2 comments

Steps to reproduce

The release script or module should add the current system version,Reduce the difficulty of finding available scripts or modules


Expected behavior


Actual behavior


he852100 avatar Feb 07 '20 10:02 he852100

@he852100 thanks for opening this issue, could you please give an example of the behavior you are looking for and also please describe the issue that you are facing with this?

SydneyhSmith avatar Feb 07 '20 22:02 SydneyhSmith

The publisher is required to manually set the compatible version and tag by default, maybe he did not set.

How do I determine if it is compatible?

improve

When the publisher releases the script, if the compatible version is not set, the current system version and PS version are automatically added。

I'm confused, How to filter CompatiblePSEditions

PS /sdcard/Documents/sh> find-module psreadline -filter Windows
Find-Package: /root/.powershell-daily/Modules/PowerShellGet/PSModule.psm1:8873
Line |
8873 |          PackageManagement\Find-Package @PSBoundParameters | Microsoft …
     |          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | No match was found for the specified search criteria and
     | module name 'psreadline'. Try Get-PSRepository to see all
     | available registered module repositories.

he852100 avatar Feb 08 '20 06:02 he852100