Whenever you use Invoke-OperationValidation, you receive an error that it cannot compare an int to the System.Management.Automation.SemanticVersion type.
In addition, due to this version check failure, the call to Import-PowerShellDataFile never succeeds.
Description
Since the code is only checking the major version in the check (in this case, 5) -- I simply pull $PSVersionTable.PSVersion.Major, which itself is an int32, which resolves this error.
Related Issue
Motivation and Context
I like my stuff to work :)
How Has This Been Tested?
I have not tested this change, but I assume this is undesirable behavior and it's a relatively simple fix.
Screenshots (if appropriate):
Types of changes
[X] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
Checklist:
[X] My code follows the code style of this project.
[ ] My change requires a change to the documentation.
Whenever you use Invoke-OperationValidation, you receive an error that it cannot compare an int to the System.Management.Automation.SemanticVersion type.
In addition, due to this version check failure, the call to Import-PowerShellDataFile never succeeds.
Description
Since the code is only checking the major version in the check (in this case, 5) -- I simply pull $PSVersionTable.PSVersion.Major, which itself is an int32, which resolves this error.
Related Issue
Motivation and Context
I like my stuff to work :)
How Has This Been Tested?
I have not tested this change, but I assume this is undesirable behavior and it's a relatively simple fix.
Screenshots (if appropriate):
Types of changes
Checklist:
This change is