15 types derived from MetadataReferenceResolver
Microsoft.CodeAnalysis (2)
CommandLine\CommonCompiler.ExistingReferencesResolver.cs (1)
22internal sealed class ExistingReferencesResolver : MetadataReferenceResolver, IEquatable<ExistingReferencesResolver>
CommandLine\CommonCompiler.LoggingMetadataFileReferenceResolver.cs (1)
13internal sealed class LoggingMetadataFileReferenceResolver : MetadataReferenceResolver, IEquatable<LoggingMetadataFileReferenceResolver>
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (4)
Compilation\CSharpCompilationOptionsTests.cs (1)
428private sealed class MetadataReferenceResolverWithEquality : MetadataReferenceResolver
Compilation\ReferenceManagerTests.cs (1)
1235private class ReferenceResolver1 : MetadataReferenceResolver
Symbols\CompilationCreationTests.cs (2)
2636private sealed class Resolver : MetadataReferenceResolver 2752private class DummyReferenceResolver : MetadataReferenceResolver
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
ThrowingMetadataReferenceResolver.cs (1)
18public sealed class ThrowingMetadataReferenceResolver : MetadataReferenceResolver
Microsoft.CodeAnalysis.ExpressionEvaluator.ExpressionCompiler (1)
EEMetadataReferenceResolver.cs (1)
11internal sealed class EEMetadataReferenceResolver : MetadataReferenceResolver
Microsoft.CodeAnalysis.Scripting (2)
Hosting\Resolvers\RuntimeMetadataReferenceResolver.cs (1)
26internal sealed class RuntimeMetadataReferenceResolver : MetadataReferenceResolver, IEquatable<RuntimeMetadataReferenceResolver>
ScriptMetadataResolver.cs (1)
17public sealed class ScriptMetadataResolver : MetadataReferenceResolver, IEquatable<ScriptMetadataResolver>
Microsoft.CodeAnalysis.Scripting.TestUtilities (1)
TestRuntimeMetadataReferenceResolver.cs (1)
14public sealed class TestRuntimeMetadataReferenceResolver : MetadataReferenceResolver
Microsoft.CodeAnalysis.Test.Utilities (2)
Mocks\TestMetadataReferenceResolver.cs (1)
15internal class TestMetadataReferenceResolver : MetadataReferenceResolver
Mocks\TestMissingMetadataReferenceResolver.cs (1)
15internal class TestMissingMetadataReferenceResolver : MetadataReferenceResolver
Microsoft.CodeAnalysis.VisualBasic.CommandLine.UnitTests (1)
CommandLineTests.vb (1)
2506Inherits MetadataReferenceResolver
Microsoft.CodeAnalysis.Workspaces (1)
Workspace\Host\Metadata\WorkspaceMetadataFileReferenceResolver.cs (1)
14internal sealed class WorkspaceMetadataFileReferenceResolver : MetadataReferenceResolver, IEquatable<WorkspaceMetadataFileReferenceResolver>
56 references to MetadataReferenceResolver
Microsoft.CodeAnalysis (20)
CommandLine\CommandLineArguments.cs (5)
368/// <param name="metadataResolver"><see cref="MetadataReferenceResolver"/> to use for assembly name and relative path resolution.</param> 371public IEnumerable<MetadataReference> ResolveMetadataReferences(MetadataReferenceResolver metadataResolver) 390internal IEnumerable<MetadataReference> ResolveMetadataReferences(MetadataReferenceResolver metadataResolver, List<DiagnosticInfo>? diagnosticsOpt, CommonMessageProvider? messageProviderOpt) 400internal virtual bool ResolveMetadataReferences(MetadataReferenceResolver metadataResolver, List<DiagnosticInfo>? diagnosticsOpt, CommonMessageProvider? messageProviderOpt, List<MetadataReference> resolved) 425internal static ImmutableArray<PortableExecutableReference> ResolveMetadataReference(CommandLineReference cmdReference, MetadataReferenceResolver metadataResolver, List<DiagnosticInfo>? diagnosticsOpt, CommonMessageProvider? messageProviderOpt)
CommandLine\CommonCompiler.cs (3)
218internal virtual MetadataReferenceResolver GetCommandLineMetadataReferenceResolver(TouchedFileLogger? loggerOpt) 230out MetadataReferenceResolver referenceDirectiveResolver) 232var commandLineReferenceResolver = GetCommandLineMetadataReferenceResolver(touchedFiles);
CommandLine\CommonCompiler.ExistingReferencesResolver.cs (2)
24private readonly MetadataReferenceResolver _resolver; 28public ExistingReferencesResolver(MetadataReferenceResolver resolver, ImmutableArray<MetadataReference> availableReferences)
Compilation\CompilationOptions.cs (4)
211public MetadataReferenceResolver? MetadataReferenceResolver { get; protected set; } 291MetadataReferenceResolver? metadataReferenceResolver, 471public CompilationOptions WithMetadataReferenceResolver(MetadataReferenceResolver? resolver) 537protected abstract CompilationOptions CommonWithMetadataReferenceResolver(MetadataReferenceResolver? resolver);
ReferenceManager\CommonReferenceManager.Binding.cs (3)
98MetadataReferenceResolver? resolverOpt, 214MetadataReferenceResolver resolver, 528MetadataReferenceResolver resolver,
ReferenceManager\CommonReferenceManager.State.cs (2)
124/// If <see cref="MetadataReferenceResolver.ResolveMissingAssemblies"/> is true the reference manager attempts to resolve assembly identities, 126/// For each such assembly identity <see cref="MetadataReferenceResolver.ResolveMissingAssembly(MetadataReference, AssemblyIdentity)"/> is called
Syntax\SyntaxTree.cs (1)
41/// <see cref="SourceReferenceResolver"/>, <see cref="XmlReferenceResolver"/> and <see cref="MetadataReferenceResolver"/>
Microsoft.CodeAnalysis.CSharp (10)
CommandLine\CSharpCompiler.cs (1)
150MetadataReferenceResolver referenceDirectiveResolver;
CSharpCompilationOptions.cs (9)
70MetadataReferenceResolver? metadataReferenceResolver = null, 120MetadataReferenceResolver? metadataReferenceResolver, 165MetadataReferenceResolver? metadataReferenceResolver, 210MetadataReferenceResolver? metadataReferenceResolver, 592public new CSharpCompilationOptions WithMetadataReferenceResolver(MetadataReferenceResolver? resolver) 647protected override CompilationOptions CommonWithMetadataReferenceResolver(MetadataReferenceResolver? resolver) => 836MetadataReferenceResolver? metadataReferenceResolver, 874MetadataReferenceResolver? metadataReferenceResolver, 919MetadataReferenceResolver? metadataReferenceResolver,
Microsoft.CodeAnalysis.CSharp.EditorFeatures (1)
Interactive\CSharpInteractiveEvaluatorLanguageInfoProvider.cs (1)
35public override CompilationOptions GetSubmissionCompilationOptions(string name, MetadataReferenceResolver metadataReferenceResolver, SourceReferenceResolver sourceReferenceResolver, ImmutableArray<string> imports)
Microsoft.CodeAnalysis.CSharp.Scripting (1)
Hosting\CommandLine\Csi.cs (1)
34internal override MetadataReferenceResolver GetCommandLineMetadataReferenceResolver(TouchedFileLogger? loggerOpt) =>
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (1)
Compilation\CSharpCompilationOptionsTests.cs (1)
407MetadataReferenceResolver metadataReferenceResolver = new MetadataReferenceResolverWithEquality();
Microsoft.CodeAnalysis.CSharp.Test.Utilities (3)
ThrowingMetadataReferenceResolver.cs (3)
15/// This simulates our default command line compilation experience where the <see cref="MetadataReferenceResolver"/> 20public MetadataReferenceResolver? Resolver { get; } 22public ThrowingMetadataReferenceResolver(MetadataReferenceResolver? resolver = null)
Microsoft.CodeAnalysis.EditorFeatures (1)
Interactive\InteractiveEvaluatorLanguageInfoProvider.cs (1)
13public abstract CompilationOptions GetSubmissionCompilationOptions(string name, MetadataReferenceResolver metadataReferenceResolver, SourceReferenceResolver sourceReferenceResolver, ImmutableArray<string> imports);
Microsoft.CodeAnalysis.Scripting (7)
Hosting\CommandLine\CommandLineRunner.cs (2)
156var metadataResolver = GetMetadataReferenceResolver(arguments, touchedFilesLoggerOpt, _createFromFileFunc); 182internal static MetadataReferenceResolver GetMetadataReferenceResolver(
Script.cs (1)
251var resolver = Options.MetadataResolver;
ScriptOptions.cs (4)
91/// <see cref="MetadataReferenceResolver"/> to be used to resolve missing dependencies, unresolved metadata references and #r directives. 93public MetadataReferenceResolver MetadataResolver { get; private set; } 149MetadataReferenceResolver metadataResolver, 310public ScriptOptions WithMetadataResolver(MetadataReferenceResolver resolver)
Microsoft.CodeAnalysis.VisualBasic (10)
CommandLine\VisualBasicCommandLineArguments.vb (1)
65metadataResolver As MetadataReferenceResolver,
CommandLine\VisualBasicCompiler.vb (1)
145Dim referenceDirectiveResolver As MetadataReferenceResolver = Nothing
VisualBasicCompilationOptions.vb (8)
94Optional metadataReferenceResolver As MetadataReferenceResolver = Nothing, 171metadataReferenceResolver As MetadataReferenceResolver, 244metadataReferenceResolver As MetadataReferenceResolver, 957Public Shadows Function WithMetadataReferenceResolver(resolver As MetadataReferenceResolver) As VisualBasicCompilationOptions 1015Protected Overrides Function CommonWithMetadataReferenceResolver(resolver As MetadataReferenceResolver) As CompilationOptions 1170metadataReferenceResolver As MetadataReferenceResolver, 1234metadataReferenceResolver As MetadataReferenceResolver, 1301Optional metadataReferenceResolver As MetadataReferenceResolver = Nothing,
Microsoft.CodeAnalysis.VisualBasic.Scripting (1)
Hosting\CommandLine\Vbi.vb (1)
28Friend Overrides Function GetCommandLineMetadataReferenceResolver(loggerOpt As TouchedFileLogger) As MetadataReferenceResolver
Microsoft.CodeAnalysis.Workspaces (1)
Serialization\AbstractOptionsSerializationService.cs (1)
99MetadataReferenceResolver metadataReferenceResolver,