3 instantiations of ScriptMetadataResolver
Microsoft.CodeAnalysis.Scripting (3)
ScriptMetadataResolver.cs (3)
19public static ScriptMetadataResolver Default { get; } = new ScriptMetadataResolver( 45return new ScriptMetadataResolver(_resolver.WithRelativePathResolver( 61return new ScriptMetadataResolver(_resolver.WithRelativePathResolver(
16 references to ScriptMetadataResolver
Microsoft.CodeAnalysis.InteractiveHost (6)
Interactive\Core\InteractiveHost.Service.cs (6)
79Debug.Assert(scriptOptions.MetadataResolver is ScriptMetadataResolver); 87public ScriptMetadataResolver MetadataReferenceResolver 88=> (ScriptMetadataResolver)ScriptOptions.MetadataResolver; 426var metadataResolver = state.MetadataReferenceResolver; 543var metadataResolver = state.MetadataReferenceResolver.WithSearchPaths(referencePathsWithoutRspDir); 544var rspMetadataResolver = state.MetadataReferenceResolver.WithSearchPaths(referencePaths).WithBaseDirectory(rspDirectory);
Microsoft.CodeAnalysis.Scripting (9)
ScriptMetadataResolver.cs (8)
17public sealed class ScriptMetadataResolver : MetadataReferenceResolver, IEquatable<ScriptMetadataResolver> 19public static ScriptMetadataResolver Default { get; } = new ScriptMetadataResolver( 32public ScriptMetadataResolver WithSearchPaths(params string[] searchPaths) 35public ScriptMetadataResolver WithSearchPaths(IEnumerable<string> searchPaths) 38public ScriptMetadataResolver WithSearchPaths(ImmutableArray<string> searchPaths) 49public ScriptMetadataResolver WithBaseDirectory(string? baseDirectory) 73public bool Equals(ScriptMetadataResolver? other) => _resolver.Equals(other); 74public override bool Equals(object? other) => Equals(other as ScriptMetadataResolver);
ScriptOptions.cs (1)
29metadataResolver: ScriptMetadataResolver.Default,
Microsoft.CodeAnalysis.Scripting.TestUtilities (1)
ScriptTestBase.cs (1)
28public ScriptMetadataResolver ScriptMetadataResolver { get; }