Hi all,
Since updating to 8.36 on my Mac, our plugin stopped loading. No error, nothing on the command line. In the Plug-in Manager it shows as enabled but not loaded, and every command I type comes back as “Unknown command”. On 8.35 it was working fine on the same machine.
After some digging I think I found the cause. 8.36 ships only .NET 10 (`10.0.8` inside `RhCore.framework/…/dotnet/arm64/shared/Microsoft.NETCore.App`), but `Compat.dll`, which sits next to it, still asks for 8.0:
"rollForward": "LatestMinor",
"framework": { "name": "Microsoft.NETCore.App", "version": "8.0.0" }
So the compatibility checker can’t even start. This is what ends up in `$TMPDIR/RhinoCompat/.txt`:
You must install or update .NET to run this application.
App: /Applications/Rhino 8.app/Contents/Frameworks/RhCore.framework/Versions/A/Resources/Compat.dll
Architecture: arm64
Framework: 'Microsoft.NETCore.App', version '8.0.0' (arm64)
.NET location: /Applications/Rhino 8.app/Contents/Frameworks/RhCore.framework/Versions/A/Resources/dotnet/arm64/
The following frameworks were found:
10.0.8 at [/Applications/Rhino 8.app/Contents/Frameworks/RhCore.framework/Versions/A/Resources/dotnet/arm64/shared/Microsoft.NETCore.App]
Rhino then writes `false` for the plugin in `~/Library/Application Support/McNeel/Rhinoceros/8.0/compat_cache_netcore` and doesn’t load it. The cache entry is keyed by the hash of the .rhp, so every rebuild, or every new version from the package manager, goes through the same thing again.
To rule out our plugin, I made a minimal net8.0 plugin with just an `OnLoad` and one command. Same result: the compat test “failed in 0.09s” with the same message in the txt, and `OnLoad` never ran. The only thing you get on the command line is the hint to use `SetDotNetRuntime`, which doesn’t really help on Mac.
The plugins themselves look fine. If I run that same `Compat.dll` by hand with Rhino’s own dotnet and `DOTNET_ROLL_FORWARD=Major`, both pass with no failures.
For now I’m launching Rhino with `DOTNET_ROLL_FORWARD=Major` in the environment while I’m developing. The checker inherits it and everything loads again. Changing the cache entry to `true` also works, but only until the next build. Obviously I can’t ask our users to do either of those things.
Could `Compat.dll` get `“rollForward”: “Major”` (or be built for net10)? It would also be nice if a checker that fails to start didn’t count as “incompatible”, or at least showed a visible message. As it is, the plugin just quietly disappears.
I haven’t tried Intel Macs or Windows.
mac.txt (4.6 KB)
Thanks!