Skip to content

- Fix $PSVersionTable.CLRVersion since it's deprecated in PS Core -> … #10

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

linuxcrash
Copy link

Description

Import-Module fails on PS Core since there is no $PSVersionTable:CLRVersion. This is deprecated.

Related Issue

PowerShell/PowerShell#1395

Motivation and Context

This fix will default $CLRVersion to 'Unknown' and only set it to a Version if it's available in $PSVersionTable.

How Has This Been Tested?

Local execution in PowerShell Core.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@linuxcrash
Copy link
Author

@MathieuBuisson the build failed due to issues of Merge-DscConfigData which was not touched/changed in this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant