1 write to MetadataReferences
Microsoft.CodeAnalysis.VisualBasic (1)
CommandLine\VisualBasicCommandLineParser.vb (1)
1496.MetadataReferences = metadataReferences.AsImmutable(),
61 references to MetadataReferences
Microsoft.CodeAnalysis (4)
CommandLine\CommandLineArguments.cs (4)
37/// Except for paths stored in <see cref="MetadataReferences"/>, all 366/// Resolves metadata references stored in <see cref="MetadataReferences"/> using given file resolver and metadata provider. 382/// Resolves metadata references stored in <see cref="MetadataReferences"/> using given file resolver and metadata provider. 404foreach (CommandLineReference cmdReference in MetadataReferences)
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (32)
CommandLineTests.cs (32)
510string[] references = args.MetadataReferences.Select(r => r.Reference).ToArray(); 1195parsedArgs.MetadataReferences. 1202parsedArgs.MetadataReferences. 1273parsedArgs.MetadataReferences. 1280parsedArgs.MetadataReferences. 1286Assert.Equal("a", parsedArgs.MetadataReferences.Single().Properties.Aliases.Single()); 1287Assert.Equal("b", parsedArgs.MetadataReferences.Single().Reference); 2633Assert.Equal(2, parsedArgs.MetadataReferences.Length); 2637Assert.Equal(2, parsedArgs.MetadataReferences.Length); 2639Assert.Equal(MscorlibFullPath, parsedArgs.MetadataReferences[0].Reference); 2640Assert.Equal(MetadataReferenceProperties.Assembly, parsedArgs.MetadataReferences[0].Properties); 2642Assert.Equal("goo.dll", parsedArgs.MetadataReferences[1].Reference); 2643Assert.Equal(MetadataReferenceProperties.Assembly, parsedArgs.MetadataReferences[1].Properties); 2647Assert.Equal(2, parsedArgs.MetadataReferences.Length); 2649Assert.Equal(MscorlibFullPath, parsedArgs.MetadataReferences[0].Reference); 2650Assert.Equal(MetadataReferenceProperties.Assembly, parsedArgs.MetadataReferences[0].Properties); 2652Assert.Equal("goo.dll", parsedArgs.MetadataReferences[1].Reference); 2653Assert.Equal(MetadataReferenceProperties.Assembly.WithEmbedInteropTypes(true), parsedArgs.MetadataReferences[1].Properties); 2657Assert.Equal(2, parsedArgs.MetadataReferences.Length); 2659Assert.Equal(MscorlibFullPath, parsedArgs.MetadataReferences[0].Reference); 2660Assert.Equal(MetadataReferenceProperties.Assembly, parsedArgs.MetadataReferences[0].Properties); 2662Assert.Equal("goo.dll", parsedArgs.MetadataReferences[1].Reference); 2663Assert.Equal(MetadataReferenceProperties.Module, parsedArgs.MetadataReferences[1].Properties); 2667Assert.Equal(4, parsedArgs.MetadataReferences.Length); 2669Assert.Equal(MscorlibFullPath, parsedArgs.MetadataReferences[0].Reference); 2670Assert.Equal(MetadataReferenceProperties.Assembly, parsedArgs.MetadataReferences[0].Properties); 2672Assert.Equal("goo.dll", parsedArgs.MetadataReferences[1].Reference); 2673Assert.Equal(MetadataReferenceProperties.Assembly.WithAliases(new[] { "a" }), parsedArgs.MetadataReferences[1].Properties); 2675Assert.Equal("bar.dll", parsedArgs.MetadataReferences[2].Reference); 2676Assert.Equal(MetadataReferenceProperties.Assembly.WithAliases(new[] { "b" }).WithEmbedInteropTypes(true), parsedArgs.MetadataReferences[2].Properties); 2678Assert.Equal("c=mod.dll", parsedArgs.MetadataReferences[3].Reference); 2679Assert.Equal(MetadataReferenceProperties.Module, parsedArgs.MetadataReferences[3].Properties);
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)
549foreach (var cmdLineReference in args.MetadataReferences)
Microsoft.CodeAnalysis.LanguageServer (1)
HostWorkspace\LoadedProject.cs (1)
158var metadataReferences = commandLineArguments.MetadataReferences.Select(cr =>
Microsoft.CodeAnalysis.VisualBasic.CommandLine.UnitTests (22)
CommandLineTests.vb (22)
761AssertEx.Equal({"System.dll"}, cmd.Arguments.MetadataReferences.Select(Function(r) r.Reference)) 2332parsedArgs.MetadataReferences. 2339parsedArgs.MetadataReferences. 2481parsedArgs.MetadataReferences. 2488parsedArgs.MetadataReferences. 4961Assert.Equal(3, parsedArgs.MetadataReferences.Length) 4962Assert.Equal("c:\", parsedArgs.MetadataReferences(0).Reference) 4963Assert.Equal(MetadataImageKind.Module, parsedArgs.MetadataReferences(0).Properties.Kind) 4964Assert.Equal("d:\x\y\z", parsedArgs.MetadataReferences(1).Reference) 4965Assert.Equal(MetadataImageKind.Module, parsedArgs.MetadataReferences(1).Properties.Kind) 4966Assert.Equal("abc", parsedArgs.MetadataReferences(2).Reference) 4967Assert.Equal(MetadataImageKind.Module, parsedArgs.MetadataReferences(2).Properties.Kind) 4968Assert.False(parsedArgs.MetadataReferences(0).Reference.EndsWith("mscorlib.dll", StringComparison.Ordinal)) 4969Assert.False(parsedArgs.MetadataReferences(1).Reference.EndsWith("mscorlib.dll", StringComparison.Ordinal)) 4970Assert.False(parsedArgs.MetadataReferences(2).Reference.EndsWith("mscorlib.dll", StringComparison.Ordinal)) 9166args.MetadataReferences.Select(Function(x) x.Reference)) 9171args.MetadataReferences.Select(Function(x) x.Reference)) 9176args.MetadataReferences.Select(Function(x) x.Reference)) 9181args.MetadataReferences.Select(Function(x) x.Reference)) 9284args.MetadataReferences.Select(Function(x) x.Reference)) 9289args.MetadataReferences.Select(Function(x) x.Reference)) 9294args.MetadataReferences.Select(Function(x) x.Reference))