02-13-2017 11:24 AM
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
02-13-2017 11:36 AM
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
02-13-2017 11:39 AM
02-13-2017 12:28 PM
What specific LINQ (either LINQ-to-XML or LINQ-to-objects) functionality are you using?
I think you may still have a mis-match between the References to actual Assemblies and the "using" statements for namespaces.
If the functionality is LINQ-to-objects, you probably want a reference to System.Core.dll and "using System.Linq".
If the functionality is LINQ-to-XML, you probably want a reference to System.Xml.Linq.dll and "using System.Xml.Linq".
Or you might be using some of both sets of functionality and need all of the above.
UPDATE: I should say that I think the *specific* compile error you're *currently* getting is related to Referenced Assemblies and namespaces.
02-14-2017 06:30 AM
Hi All,
Thanks to every one for all the inputs. Is there a way we could call external assembly containing all Linq - to - XML logic from Unity Script.
Any references would be helpful.
Thanks
Srinivas
02-14-2017 07:24 AM
02-14-2017 01:21 PM
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.