HoareLea / SAM_Deploy

Sustainable Analytical Model (SAM) - Installation repository
8 stars 4 forks source link

bug exception #6

Open michaldengusiak opened 3 years ago

michaldengusiak commented 3 years ago

issue on some PCs

image image

willhl commented 3 years ago

Hmm... image Left: C:\Program Files\Rhino 6\Plug-ins\Grasshopper Right: Nuget Build differs very slightly.

willhl commented 3 years ago

Nope! I changed the refs over from nuget to local ones... same issue...

willhl commented 3 years ago

OK I've been down a few rabbit holes and I think I've found the issue.. but fixing it is a pain.

It could be because we have SAM.Core.Grasshopper.gha and SAM.Core.Grasshopper.dll present, I think when it loads a .gha which depends on another .gha, the assembly resolver finds the .dll and loads it, so now it's got the .gha version of the same library loaded too. I thought I could fix it by explicitly setting the load order in the .ghlink file, it didn't work, still!