You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(LabXml): mark obsolete Machine.Type and IsoImage.ImageType as [Xm…
…lIgnore]
Import-Lab and Import-LabDefinition were failing on PowerShell 7 / .NET 8+ with No machines imported from file because the XmlSerializer (a) wrote <Type>Unknown</Type> on every export and (b) invoked Machine.Type's setter on every import. The setter is marked [Obsolete] in V2 and unconditionally throws NotImplementedException, so deserialization aborted on the very first <Type> element it encountered.
Adding [XmlIgnore] to both obsolete properties (Machine.Type and the symmetrically obsolete IsoImage.ImageType) keeps them out of the serialized payload and prevents the setter from being invoked when reading legacy files that still contain <Type>. Existing on-disk lab files now import cleanly without manual editing.
Fixes#1836, #1840.
Co-authored-by: AI Assistant <ai@example.com>
Merge pull request #1837 from raandree/fix/#1832-2
Fix Install-LabRdsCertificate: clean up temp .cer on every VM and suppress missing-file errors (Fixes#1832)