A bunch of Errors in Visual Studio

@Senih .Net Core handles the storing of images (apparently, I just learned this) as byte[] instead of as Bitmap type. Which you can see if we look at the generated code-behind file of the Resources for each of your two projects (.Net Framework/.Net Core):

.Net Framework returns Bitmap:
image

.Net Core returns Byte[]
image

So you will have to handle the image retrieval differently in the component class, here was your code that wasn’t working:

image

So if you instead modify the code as follows, it should work as expected:

image

NOTE: I had to modify the build step that copied the .gha so that it would work on my file system. I also recommend you wrap the build output parameter in double quotes, in case you run the solution from a path that contains spaces in the file path.

image

Here was the result after starting Rhino 8 with your component:

1 Like