Skip to content

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