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)
511string[] references = args.MetadataReferences.Select(r => r.Reference).ToArray(); 1196parsedArgs.MetadataReferences. 1203parsedArgs.MetadataReferences. 1274parsedArgs.MetadataReferences. 1281parsedArgs.MetadataReferences. 1287Assert.Equal("a", parsedArgs.MetadataReferences.Single().Properties.Aliases.Single()); 1288Assert.Equal("b", parsedArgs.MetadataReferences.Single().Reference); 2634Assert.Equal(2, parsedArgs.MetadataReferences.Length); 2638Assert.Equal(2, parsedArgs.MetadataReferences.Length); 2640Assert.Equal(MscorlibFullPath, parsedArgs.MetadataReferences[0].Reference); 2641Assert.Equal(MetadataReferenceProperties.Assembly, parsedArgs.MetadataReferences[0].Properties); 2643Assert.Equal("goo.dll", parsedArgs.MetadataReferences[1].Reference); 2644Assert.Equal(MetadataReferenceProperties.Assembly, parsedArgs.MetadataReferences[1].Properties); 2648Assert.Equal(2, parsedArgs.MetadataReferences.Length); 2650Assert.Equal(MscorlibFullPath, parsedArgs.MetadataReferences[0].Reference); 2651Assert.Equal(MetadataReferenceProperties.Assembly, parsedArgs.MetadataReferences[0].Properties); 2653Assert.Equal("goo.dll", parsedArgs.MetadataReferences[1].Reference); 2654Assert.Equal(MetadataReferenceProperties.Assembly.WithEmbedInteropTypes(true), parsedArgs.MetadataReferences[1].Properties); 2658Assert.Equal(2, parsedArgs.MetadataReferences.Length); 2660Assert.Equal(MscorlibFullPath, parsedArgs.MetadataReferences[0].Reference); 2661Assert.Equal(MetadataReferenceProperties.Assembly, parsedArgs.MetadataReferences[0].Properties); 2663Assert.Equal("goo.dll", parsedArgs.MetadataReferences[1].Reference); 2664Assert.Equal(MetadataReferenceProperties.Module, parsedArgs.MetadataReferences[1].Properties); 2668Assert.Equal(4, parsedArgs.MetadataReferences.Length); 2670Assert.Equal(MscorlibFullPath, parsedArgs.MetadataReferences[0].Reference); 2671Assert.Equal(MetadataReferenceProperties.Assembly, parsedArgs.MetadataReferences[0].Properties); 2673Assert.Equal("goo.dll", parsedArgs.MetadataReferences[1].Reference); 2674Assert.Equal(MetadataReferenceProperties.Assembly.WithAliases(new[] { "a" }), parsedArgs.MetadataReferences[1].Properties); 2676Assert.Equal("bar.dll", parsedArgs.MetadataReferences[2].Reference); 2677Assert.Equal(MetadataReferenceProperties.Assembly.WithAliases(new[] { "b" }).WithEmbedInteropTypes(true), parsedArgs.MetadataReferences[2].Properties); 2679Assert.Equal("c=mod.dll", parsedArgs.MetadataReferences[3].Reference); 2680Assert.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)
154var 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)) 9194args.MetadataReferences.Select(Function(x) x.Reference)) 9199args.MetadataReferences.Select(Function(x) x.Reference)) 9204args.MetadataReferences.Select(Function(x) x.Reference)) 9209args.MetadataReferences.Select(Function(x) x.Reference)) 9312args.MetadataReferences.Select(Function(x) x.Reference)) 9317args.MetadataReferences.Select(Function(x) x.Reference)) 9322args.MetadataReferences.Select(Function(x) x.Reference))