Closed adamfoneil closed 4 years ago
Reflection-only loading still doesn't load all dependencies reliably, even if you have a working ReflectionOnlyAssemblyResolve
event:
Looked at this, but can't tell relevance https://stackoverflow.com/questions/40849745/what-is-deps-json-and-how-do-i-make-it-use-relative-paths
I'm thinking there could be a helper you could add to your project that outputs the data model on startup so that ModelSync can load it without using reflection
I'm shifting effort to #3
It's too unpredictable to load assemblies with
LoadFrom
orLoad
. There's just no simple way to ensure dependencies are present, and the mechanism for examining dependencies dynamically -- theAssemblyResolve
event or whatever it is -- is just not straightforward enough.The problem of course with "reflection only" assembly load is that attributes aren't supported in the usual way. Attribute info is available, but through some kind of abstraction that's very unlike ordinary attribute access I've done in the past. So, I think this can be done, but I'm really annoyed that I have to do this.