ProjectManager.LoadReferencedAssemblies Method

Definition

Load referenced assemblies, returning a dictionary that maps each existing dll to the Q# attributes it contains.

public static System.Collections.Immutable.ImmutableDictionary<string,Microsoft.Quantum.QsCompiler.CompilationBuilder.References.Headers> LoadReferencedAssemblies (System.Collections.Generic.IEnumerable<string> references, Action<Microsoft.VisualStudio.LanguageServer.Protocol.Diagnostic>? onDiagnostic = default, Action<Exception>? onException = default, bool ignoreDllResources = false);
static member LoadReferencedAssemblies : seq<string> * Action<Microsoft.VisualStudio.LanguageServer.Protocol.Diagnostic> * Action<Exception> * bool -> System.Collections.Immutable.ImmutableDictionary<string, Microsoft.Quantum.QsCompiler.CompilationBuilder.References.Headers>
Public Shared Function LoadReferencedAssemblies (references As IEnumerable(Of String), Optional onDiagnostic As Action(Of Diagnostic) = Nothing, Optional onException As Action(Of Exception) = Nothing, Optional ignoreDllResources As Boolean = false) As ImmutableDictionary(Of String, References.Headers)

Parameters

references
IEnumerable<String>

The references to filter and load.

onDiagnostic
Action<Diagnostic>

Called on all generated diagnostics.

onException
Action<Exception>
ignoreDllResources
Boolean

Returns

ImmutableDictionary<String,Headers>

Remarks

Generates a suitable error message for each binary file that could not be loaded.

Applies to