PowerShell serialization has a list of known PowerShell types. When an object is deserialized containing a known type it tries to deserialize the object to that specific type and throws an exception if it can't succeed. SemanticVersion only exists in PSCore6 so when remoting from Windows PowerShell or importing clixml generated from PSCore6 that contains SemanticVersion, it fails. With this fix, it will be rehydrated as a "PSObject" with "Deseriealized.System.Management.Automation.SemanticVersion" in the 'TypeNames' in both Windows PowerShell and PowerShell Core. |
||
---|---|---|
.. | ||
Api | ||
Basic | ||
Cdxml | ||
COM | ||
ETS | ||
Help | ||
Job | ||
Module | ||
ParameterBinding | ||
Remoting | ||
ResourceValidation |