Skip to content

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

Merged
adityapatwardhan merged 1 commit intoPowerShell:masterfrom
adityapatwardhan:FixPSVersionUsage
Feb 14, 2024
Merged

Do not call .NET methods to enable use on CLM#1564
adityapatwardhan merged 1 commit intoPowerShell:masterfrom
adityapatwardhan:FixPSVersionUsage

Conversation

@adityapatwardhan
Copy link
Member

@adityapatwardhan adityapatwardhan commented Feb 13, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

PSResourceGet doesn't work in CLM

4 participants