Unexpected error has occurred during the library compilation process: The assembly compilation returned the following errors: * XML literals and XML axis properties are not available. Add references to System.Xml, System.Xml.Linq, and System.Core or

Hi Team,

We are trying to migrate Windows Legacy automation to Windows, we are facing the below issue.
"Unexpected error has occurred during the library compilation process:
The assembly compilation returned the following errors:

  • XML literals and XML axis properties are not available. Add references to System.Xml, System.Xml.Linq, and System.Core or other assemblies declaring System.Linq.Enumerable, System.Xml.Linq.XElement, System.Xml.Linq.XName, System.Xml.Linq.XAttribute and System.Xml.Linq.XNamespace types.
  • XML literals and XML axis properties are not available. Add references to System.Xml, System.Xml.Linq, and System.Core or other assemblies declaring System.Linq.Enumerable, System.Xml.Linq.XElement, System.Xml.Linq.XName, System.Xml.Linq.XAttribute and System.Xml.Linq.XNamespace types."

@Pawan17,

Looks like mentioned namespaces are missing.

Can you import these namespaces into your project and few other thats shown in the error?

System.Xml
System.Xml.Linq
System.Linq.Enumerable
System.Core

Regards
Sonali

Namespaces are available still facing the same issue

Can you close the project and studio and reload?

We tried that didn’t work out, and the compilation is failing at different xamls each time we complie