cancel
Showing results for 
Search instead for 
Did you mean: 

using System.XML.Linq in unity WF Script

Srinivas_Kaira1
Champ on-the-rise
Champ on-the-rise

Hi,

I am running into below issue. I am working on a Unity WF Script and I have added V4.0 System.Core also. I am getting below error.

The type or namespace name 'Linq' does not exist in the namespace 'System.Xml' (are you missing an a
ssembly reference?)

Any idea how can I solve this error?

Thanks for the help.

Regards

Srinivas

1 ACCEPTED ANSWER

Scott_McLean
Elite Collaborator
Elite Collaborator

Hi Srivinas,

This is an issue in versions earlier than 16. Linq includes static references that are incompatible with the Unity script environment.

Options to fix the problem are:

1. Upgrade to v16, where Linq is supported

2. Convert to a loop or other object that doesnot use Linq

Hope that helps,

-Scott

View answer in original post

15 REPLIES 15

If I am not mistaken, Importing assemblies was added into the OnBase Studio Script editor in Version 15. Assemblies can still be imported and assigned to a script within the older Configuration Script Editor under Config | Queries | Unity.

Please be sure that OnBase Studio is not opened when the Config Editor is used. Also, please note that importing an assembly is available in OnBase Studio in later versions, and the Config Editor is planned to be removed in OnBase 17.

In versions that do not allow assemblies to be imported, custom assemblies can be made Strongly-Typed and added to the System GAC for reference.