Load GH_Component from referenced dll

If I have a solution of 2 projects, where the main references the secondary, and the secondary has a class inheriting GH_component, the component isn’t loaded, but If I define the class in my main project, it is loaded.

Can I not define components in a dll? Or can I do something with priorityload in the main project so that GH knows to load the component from the dll?