which compiles / looks OK in Visual Studio, but when I run it I get the following error:
The call is ambiguous between the following methods or properties: 'uComponents.Core.uQueryExtensions.NodeExtensions.GetAncestorNodes(umbraco.NodeFactory.Node)' and 'umbraco.NodeExtensions.GetAncestorNodes(umbraco.NodeFactory.Node)'
Problem with uQuery in umbraco 4.9.1
I have the following :
which compiles / looks OK in Visual Studio, but when I run it I get the following error:
The call is ambiguous between the following methods or properties: 'uComponents.Core.uQueryExtensions.NodeExtensions.GetAncestorNodes(umbraco.NodeFactory.Node)' and 'umbraco.NodeExtensions.GetAncestorNodes(umbraco.NodeFactory.Node)'
How might I fix that?!
Hi Gordon,
Try removing the reference for "uComponents.Core.uQueryExtensions", as uQuery is now part of the Umbraco core, (under the "umbraco" namespace).
Cheers, Lee.
That worked - although VS complains that GetAncestorNodes() until I compile - then it seems fine!? Weird
Godron, is that a macro script? Why not simply use:
Not familiar with uQuery.
is working on a reply...