13 instantiations of CommandLineReference
Microsoft.CodeAnalysis.CSharp (3)
CommandLine\CSharpCommandLineParser.cs (3)
727metadataReferences.AddRange(ParseSeparatedPaths(value).Select(path => new CommandLineReference(path, MetadataReferenceProperties.Module))); 1421metadataReferences.Insert(0, new CommandLineReference(Path.Combine(sdkDirectory, "mscorlib.dll"), MetadataReferenceProperties.Assembly)); 1973commandLineReferences.Add(new CommandLineReference(path.ToString(), properties));
Microsoft.CodeAnalysis.LanguageServer (1)
HostWorkspace\LoadedProject.cs (1)
169return absolutePath is not null ? new CommandLineReference(absolutePath, cr.Properties) : default;
Microsoft.CodeAnalysis.VisualBasic (9)
CommandLine\VisualBasicCommandLineParser.vb (9)
697Function(path) New CommandLineReference(path, New MetadataReferenceProperties(MetadataImageKind.Module)))) 1349New CommandLineReference(systemDllPath, New MetadataReferenceProperties(MetadataImageKind.Assembly))) 1362New CommandLineReference(msVbDllPath, New MetadataReferenceProperties(MetadataImageKind.Assembly))) 1365metadataReferences.Add(New CommandLineReference(vbRuntimePath, New MetadataReferenceProperties(MetadataImageKind.Assembly))) 1565Return New CommandLineReference(systemRuntimePath, New MetadataReferenceProperties(MetadataImageKind.Assembly)) 1574Return New CommandLineReference(systemRuntimePath, New MetadataReferenceProperties(MetadataImageKind.Assembly)) 1582Return New CommandLineReference(msCorLibPath, New MetadataReferenceProperties(MetadataImageKind.Assembly)) 1587Return New CommandLineReference(msCorLibPath, New MetadataReferenceProperties(MetadataImageKind.Assembly)) 1709Select(Function(path) New CommandLineReference(path, New MetadataReferenceProperties(MetadataImageKind.Assembly, embedInteropTypes:=embedInteropTypes)))
24 references to CommandLineReference
Microsoft.CodeAnalysis (7)
CommandLine\CommandLineArguments.cs (3)
157public ImmutableArray<CommandLineReference> MetadataReferences { get; internal set; } 415foreach (CommandLineReference cmdReference in MetadataReferences) 436internal static ImmutableArray<PortableExecutableReference> ResolveMetadataReference(CommandLineReference cmdReference, MetadataReferenceResolver metadataResolver, List<DiagnosticInfo>? diagnosticsOpt, CommonMessageProvider? messageProviderOpt)
CommandLine\CommandLineReference.cs (4)
15public readonly struct CommandLineReference : IEquatable<CommandLineReference> 45return obj is CommandLineReference && base.Equals((CommandLineReference)obj); 48public bool Equals(CommandLineReference other)
Microsoft.CodeAnalysis.CSharp (3)
CommandLine\CSharpCommandLineParser.cs (3)
113List<CommandLineReference> metadataReferences = new List<CommandLineReference>(); 1910private static void ParseAssemblyReferences(string arg, ReadOnlyMemory<char>? valueMemory, IList<Diagnostic> diagnostics, bool embedInteropTypes, List<CommandLineReference> commandLineReferences)
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (2)
CommandLineTests.cs (2)
2690var result = parseRef(arg); 2696CommandLineReference parseRef(string refText)
Microsoft.CodeAnalysis.InteractiveHost (1)
Interactive\Core\InteractiveHost.Service.cs (1)
551foreach (var cmdLineReference in args.MetadataReferences)
Microsoft.CodeAnalysis.LanguageServer (5)
HostWorkspace\LoadedProject.cs (2)
43private ImmutableArray<CommandLineReference> _mostRecentMetadataReferences = []; 175EqualityComparer<CommandLineReference>.Default, // CommandLineReference already implements equality
HostWorkspace\ProjectTelemetry\ProjectLoadTelemetryReporter.cs (3)
26public ImmutableArray<CommandLineReference> MetadataReferences { get; init; } 119private static ImmutableArray<string> GetHashedReferences(ImmutableArray<CommandLineReference> metadataReferences) 123static string GetHashedReferenceName(CommandLineReference reference)
Microsoft.CodeAnalysis.VisualBasic (6)
CommandLine\VisualBasicCommandLineArguments.vb (1)
59Friend Property DefaultCoreLibraryReference As CommandLineReference?
CommandLine\VisualBasicCommandLineParser.vb (5)
130Dim metadataReferences = New List(Of CommandLineReference)() 1339Dim defaultCoreLibraryReference As CommandLineReference? = LoadCoreLibraryReference(sdkPaths, baseDirectory) 1550Private Function LoadCoreLibraryReference(sdkPaths As List(Of String), baseDirectory As String) As CommandLineReference? 1701Friend Shared Function ParseAssemblyReferences(name As String, value As String, diagnostics As IList(Of Diagnostic), embedInteropTypes As Boolean) As IEnumerable(Of CommandLineReference) 1705Return SpecializedCollections.EmptyEnumerable(Of CommandLineReference)()