After Rhino Update to Rhino 6.6 in grasshopper C# editor only these assemblies are loaded:
using System;
using System.Collections;
using System.Collections.Generic;
using Rhino;
using Rhino.Geometry;
using Grasshopper;
using Grasshopper.Kernel;
using Grasshopper.Kernel.Data;
Now imagine how linq expressios have to be written in such cases and other grasshopper types, also using kangaroo.dll I have to specify each type from basic namespace as other assemblies are not loaded. All extensions methods in all loaded libraries not working so I have to write really long sentences to do even simple stuff…
How to solve this issue? Did this happen to someone else?
Did you open an existing script component or a new one?
New ones have fewer standard using statements, but an editable using section. For pre-existing components the usual namespaces should appear in the editable section.
Just restarted computer opened new rhino file new gh file new c# editor component.
Same stuff.
No full list of namespaces.
If I load any library it is not shown in the list and the only way to access is like this KangarooSolver.IGoal or in case of linq like this System.Linq.Enumerable.Reverse()
And the same stuff is for old ones. The main issue is asked is that all the things I created before simply do not work because of this referencing.
For me it would be ok if those system references are not shown. But incase you have extension methods in library and you cannot use it is really annoying.
This bit is expected and by design. If you need Linq, or if you referenced Kangaroo, then you must now specifically state the namespaces you with to use yourself.
I was getting complaints from people who had referenced a lot of additional assemblies and their auto-generated using block was getting both out of hand and causing type name ambiguities. It’s a bit more expertish now, but hopefully improved.
I’d really like to have one of those files that fail to load with all references. Remember, it cannot be saved with the new version because then I can’t test why it didn’t open an old version correctly.