Script Editor: Dependencies of nuget packages are not installed

We noticed the following behavior of the RhinoCode C# script component, which likely is not intended: When adding a required package using the #r "nuget: XYZ" syntax, the script editor uses nuget to install the requested package. However, the dependencies of the package are not installed. This may cause scripts to fail. The problem can be worked around by adding the required dependencies using further #r lines.

This problem surfaced when one of our customers was writing scripts using the NPOI library, which has a dependency on ZString.

@snabela It is definitely not intended but it is current behaviour and I have a YT to improve this in 9. The problem is dependency resolution for dotnet is complicated and Rhino runs on many dotnet frameworks so I did not initially build this into the package installer.

RH-78722 NuGet package processor does not include dlls from package dependencies in the build

1 Like

Many thanks for your feedback! Fully understood, I had anticipated that the dependency resolution would be challenging, given the different dotnet frameworks.

1 Like