ProjectManager.LoadReferencedAssemblies Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
- ignoreDllResources
- Boolean
Returns
Remarks
Generates a suitable error message for each binary file that could not be loaded.