Now we would like to be able to extend this library of render styles. Ideally without having to go into the patch and re-export as an .exe every time. That way it could be user extendable eventually.
How far away are we from being able to export a class as a .dll and have our .exe be able to read them in? I remember there was still some issue with the older .NET that was prohibiting that. Has anything changed there with the move to the new .NET? Is it still impossible or is there some hope it could get tackled with appropriate funding?
Actually this is already the “default” for the new 2022.5. branch, which is still in preview though.
Here, libraries by default get compiled into dlls. You could make use of this and separate your project into the part that has a library character and into the other part that is your application.
Now, within your application you reference the library, which will result in precompiling it to a dll.
This workflow works for all libraries that are referenced via nuget dependency. And if you want to have the same for your “source repository” you can have it with the command-line argument --compile-source-packages.