PowerShell / PSResourceGet

PSResourceGet is the package manager for PowerShell
https://www.powershellgallery.com/packages/Microsoft.PowerShell.PSResourceGet
MIT License
483 stars 92 forks source link

Do not call .NET methods to enable use on CLM #1564

Closed adityapatwardhan closed 6 months ago

adityapatwardhan commented 6 months ago

PR Summary

Calling .ToString() does not work on CLM as it is not allowed to call .NET methods. We just get it as a hashtable and then get the values. We cannot call the PSVersionInfo type as it only exists in PS 7+.

Fixes #1563

PR Context

PR Checklist