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