35 references to Reference
Microsoft.CodeAnalysis (4)
CommandLine\CommandLineArguments.cs (4)
417resolved.Add(new UnresolvedMetadataReference(cmdReference.Reference, cmdReference.Properties)); 433references = metadataResolver.ResolveReference(cmdReference.Reference, baseFilePath: null, properties: cmdReference.Properties); 437var diagnostic = PortableExecutableReference.ExceptionToDiagnostic(e, messageProviderOpt!, Location.None, cmdReference.Reference, cmdReference.Properties.Kind); 445diagnosticsOpt.Add(new DiagnosticInfo(messageProviderOpt, messageProviderOpt.ERR_MetadataFileNotFound, cmdReference.Reference));
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (17)
CommandLineTests.cs (17)
511string[] references = args.MetadataReferences.Select(r => r.Reference).ToArray(); 1198Select((res) => res.Reference)); 1205Select((res) => res.Reference)); 1276Select((res) => res.Reference)); 1283Select((res) => res.Reference)); 1288Assert.Equal("b", parsedArgs.MetadataReferences.Single().Reference); 2640Assert.Equal(MscorlibFullPath, parsedArgs.MetadataReferences[0].Reference); 2643Assert.Equal("goo.dll", parsedArgs.MetadataReferences[1].Reference); 2650Assert.Equal(MscorlibFullPath, parsedArgs.MetadataReferences[0].Reference); 2653Assert.Equal("goo.dll", parsedArgs.MetadataReferences[1].Reference); 2660Assert.Equal(MscorlibFullPath, parsedArgs.MetadataReferences[0].Reference); 2663Assert.Equal("goo.dll", parsedArgs.MetadataReferences[1].Reference); 2670Assert.Equal(MscorlibFullPath, parsedArgs.MetadataReferences[0].Reference); 2673Assert.Equal("goo.dll", parsedArgs.MetadataReferences[1].Reference); 2676Assert.Equal("bar.dll", parsedArgs.MetadataReferences[2].Reference); 2679Assert.Equal("c=mod.dll", parsedArgs.MetadataReferences[3].Reference); 2702Assert.Equal(expectedRef, result.Reference);
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (1)
CommandLineRunnerTests.cs (1)
692}, arguments.MetadataReferences.Select(r => r.Reference));
Microsoft.CodeAnalysis.InteractiveHost (1)
Interactive\Core\InteractiveHost.Service.cs (1)
554var resolvedReferences = rspMetadataResolver.ResolveReference(cmdLineReference.Reference, baseFilePath: null, properties: MetadataReferenceProperties.Assembly);
Microsoft.CodeAnalysis.LanguageServer (5)
HostWorkspace\LoadedProject.cs (4)
160relativePathResolver.ResolvePath(cr.Reference, baseFilePath: null) ?? 161FileUtilities.ResolveRelativePath(cr.Reference, commandLineArguments.BaseDirectory); 170reference => _projectSystemProject.AddMetadataReference(reference.Reference, reference.Properties), 171reference => _projectSystemProject.RemoveMetadataReference(reference.Reference, reference.Properties),
HostWorkspace\ProjectTelemetry\ProjectLoadTelemetryReporter.cs (1)
125var lowerCaseName = Path.GetFileNameWithoutExtension(reference.Reference).ToLower();
Microsoft.CodeAnalysis.VisualBasic.CommandLine.UnitTests (7)
CommandLineTests.vb (7)
4961Assert.Equal("c:\", parsedArgs.MetadataReferences(0).Reference) 4963Assert.Equal("d:\x\y\z", parsedArgs.MetadataReferences(1).Reference) 4965Assert.Equal("abc", parsedArgs.MetadataReferences(2).Reference) 4967Assert.False(parsedArgs.MetadataReferences(0).Reference.EndsWith("mscorlib.dll", StringComparison.Ordinal)) 4968Assert.False(parsedArgs.MetadataReferences(1).Reference.EndsWith("mscorlib.dll", StringComparison.Ordinal)) 4969Assert.False(parsedArgs.MetadataReferences(2).Reference.EndsWith("mscorlib.dll", StringComparison.Ordinal)) 4970Assert.True(parsedArgs.DefaultCoreLibraryReference.Value.Reference.EndsWith("mscorlib.dll", StringComparison.Ordinal))