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