29 references to Properties
Microsoft.CodeAnalysis (3)
CommandLine\CommandLineArguments.cs (3)
417resolved.Add(new UnresolvedMetadataReference(cmdReference.Reference, cmdReference.Properties)); 433references = metadataResolver.ResolveReference(cmdReference.Reference, baseFilePath: null, properties: cmdReference.Properties); 437var diagnostic = PortableExecutableReference.ExceptionToDiagnostic(e, messageProviderOpt!, Location.None, cmdReference.Reference, cmdReference.Properties.Kind);
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (17)
CommandLineTests.cs (17)
1197Where((res) => res.Properties.EmbedInteropTypes). 1204Where((res) => res.Properties.EmbedInteropTypes). 1275Where((res) => !res.Properties.EmbedInteropTypes). 1282Where((res) => !res.Properties.EmbedInteropTypes). 1287Assert.Equal("a", parsedArgs.MetadataReferences.Single().Properties.Aliases.Single()); 2641Assert.Equal(MetadataReferenceProperties.Assembly, parsedArgs.MetadataReferences[0].Properties); 2644Assert.Equal(MetadataReferenceProperties.Assembly, parsedArgs.MetadataReferences[1].Properties); 2651Assert.Equal(MetadataReferenceProperties.Assembly, parsedArgs.MetadataReferences[0].Properties); 2654Assert.Equal(MetadataReferenceProperties.Assembly.WithEmbedInteropTypes(true), parsedArgs.MetadataReferences[1].Properties); 2661Assert.Equal(MetadataReferenceProperties.Assembly, parsedArgs.MetadataReferences[0].Properties); 2664Assert.Equal(MetadataReferenceProperties.Module, parsedArgs.MetadataReferences[1].Properties); 2671Assert.Equal(MetadataReferenceProperties.Assembly, parsedArgs.MetadataReferences[0].Properties); 2674Assert.Equal(MetadataReferenceProperties.Assembly.WithAliases(new[] { "a" }), parsedArgs.MetadataReferences[1].Properties); 2677Assert.Equal(MetadataReferenceProperties.Assembly.WithAliases(new[] { "b" }).WithEmbedInteropTypes(true), parsedArgs.MetadataReferences[2].Properties); 2680Assert.Equal(MetadataReferenceProperties.Module, parsedArgs.MetadataReferences[3].Properties); 2703Assert.Equal(expectedAliases, result.Properties.Aliases); 2704Assert.Equal(expectedEmbed, result.Properties.EmbedInteropTypes);
Microsoft.CodeAnalysis.InteractiveHost (2)
Interactive\Core\InteractiveHost.Service.cs (2)
552Debug.Assert(cmdLineReference.Properties.Kind == MetadataImageKind.Assembly && !cmdLineReference.Properties.EmbedInteropTypes);
Microsoft.CodeAnalysis.LanguageServer (3)
HostWorkspace\LoadedProject.cs (3)
163return absolutePath is not null ? new CommandLineReference(absolutePath, cr.Properties) : default; 170reference => _projectSystemProject.AddMetadataReference(reference.Reference, reference.Properties), 171reference => _projectSystemProject.RemoveMetadataReference(reference.Reference, reference.Properties),
Microsoft.CodeAnalysis.VisualBasic.CommandLine.UnitTests (4)
CommandLineTests.vb (4)
4962Assert.Equal(MetadataImageKind.Module, parsedArgs.MetadataReferences(0).Properties.Kind) 4964Assert.Equal(MetadataImageKind.Module, parsedArgs.MetadataReferences(1).Properties.Kind) 4966Assert.Equal(MetadataImageKind.Module, parsedArgs.MetadataReferences(2).Properties.Kind) 4971Assert.Equal(MetadataImageKind.Assembly, parsedArgs.DefaultCoreLibraryReference.Value.Properties.Kind)