Skip to content
This repository has been archived by the owner on Aug 28, 2021. It is now read-only.

Reverted a line which caused ALL libraries from kits to be explicitly loaded #149

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

nic-burgers-arup
Copy link
Contributor

@nic-burgers-arup nic-burgers-arup commented Jun 26, 2020

Hi guys

I see during kit initialisation that SpeckleCore used to load all kit assemblies using a ReflectionOnlyLoadFrom call but it was commented out in favour of a LoadFrom call at some point.

Could we revert it back to being a ReflectionOnlyLoadFrom call? That would solve this issue:

SpeckleGSA and the conversion library within the SpeckleStructural kit both reference the same file (SpeckleGSAInterfaces.dll) and I'm finding that it is often loaded twice into the loaded modules list, i.e. from 2 separate locations.

Note: this library doesn't need to be in the SpeckleStructural kit at all - in fact I'll remove it as soon as SpeckleRevit has been updated with the latest SpeckleCore version - but for the next short while SpeckleGSA will need to be able to cope with it.

I have a few workarounds in mind but I thought I might try to cause a change at the root of the issue -

Can you remember why it was changed in the first place?

Cheers

… loaded instead of just the ones which reference SpeckleCore. This is causing the issue where the SpeckleGSAInterfaces.dll in the SpeckleStructural kit to be loaded twice. Note: this dll will be removed from the SpeckleStructural kit in the near future but this change is needed in the meantime.
@teocomi
Copy link
Member

teocomi commented Jun 26, 2020

Seems like it was changed by @didimitrie in December when he converted the library to .net standard, can you maybe test with .net standard to see if it works? I tried and it builds fine...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants