Error CoreCLR

I was trying to update my plgugin to the new rhino version 8, but I’m getting this error when I run it, I think I’m missing something, does anyone know how to solve it?

errro

I was trying to make a plugin from scratch, but I still have a problem with the library and I can’t figure it out.

Something’s not right and I don’t know what it is

Likely you’re running the plugin and rhino in the opposite framworks!

If you debug the plugin in .net7.0 you’ll need to ensure Rhino is running in dotnet core mode too! :slight_smile:
And if you debug the plugin in net48 you’ll need to ensure Rhino is running in dotnet framework as wel.

You’ll want to update your launchSettings.json to look like this;

"Win Rhino 8 net48": {
	"commandName": "Executable",
	"executablePath": "C:\\Program Files\\Rhino 8\\System\\Rhino.exe",
	"commandLineArgs": "/nosplash /netfx"
},
"Win Rhino 8 Net7.0": {
	"commandName": "Executable",
	"executablePath": "C:\\Program Files\\Rhino 8\\System\\Rhino.exe",
	"commandLineArgs": "/nosplash /dotnet"
},

You’ll also need to ensure you’re running the right framework in Visual Studio
image

– cs

2 Likes

Thank you,

But were is this file? I can not find.

Thanks

1 Like

It should be in a Properties folder besides your .csproj.
See here → Crash/src/Crash/Properties at main · crashcloud/Crash · GitHub

I’ve included one attached here that I use.
launchSettings.json (867 Bytes)

1 Like