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