I encountered a very tricky issue with GH development

I plan to do some development with Rhino 8.4, but I encountered the following problem.
When loading the assembly resources, GH will fail to load.

when null,will be ok:

else:

I’m really curious to know if you have encountered such a situation.

A few suggestions:

Is the icon correct size (24x24)?
Bit depth 32 bit?
Is it set to internal or public in the references?

What are the errors?

Thank you very much for your reply.
I finally discovered the reason:

The path in the WPF window cannot be specified in this way.
Due to this reason, the internal settings of VS will be compromised, resulting in this problem occurring in all subsequent projects of VS.
After reinstalling the system and VS, it can only run normally


Also, there is a question that has been bothering me all along:
Rhino.Runtime.InProcess.RhinoCore rhinoCore = new Rhino.Runtime.InProcess.RhinoCore(null, WindowStyle.Normal)
It is one way to get the RhinoCore ,but how can i get the RhinoCore from en opened Rhino?

I’m not sure if you figured this out, but you can access images in the resx file using a static binding in WPF: