CSharpRepl icon indicating copy to clipboard operation
CSharpRepl copied to clipboard

Possibly unnecessary duplicate loading of all framework libs

Open kindermannhubert opened this issue 3 years ago • 0 comments

Feature Description

At the start, we load all reference and implementation references. Then when load library targeting the same framework via #load "xxx.dll" all framework references (ref and impl) are loaded again (if dll target same framework) in AssemblyReferenceService.CreateDefaultReferences. Resulting MetadataReferences are then merged (in AssemblyReferenceService.LoadSharedFrameworkConfiguration) with already loaded ones. We should only load references not already loaded.

kindermannhubert avatar Aug 20 '22 09:08 kindermannhubert