74 references to Assembly
Microsoft.CodeAnalysis (1)
ReferenceManager\CommonReferenceManager.Resolution.cs (1)
876var references = compilation.Options.MetadataReferenceResolver.ResolveReference(reference, basePath, MetadataReferenceProperties.Assembly.WithRecursiveAliases(true));
Microsoft.CodeAnalysis.CSharp (1)
CommandLine\CSharpCommandLineParser.cs (1)
1406metadataReferences.Insert(0, new CommandLineReference(Path.Combine(sdkDirectory, "mscorlib.dll"), MetadataReferenceProperties.Assembly));
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (8)
CommandLineTests.cs (8)
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); 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);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (12)
Compilation\CompilationAPITests.cs (2)
2175: base(MetadataReferenceProperties.Assembly) 3141var moduleReference = MetadataReference.CreateFromStream(moduleStream, MetadataReferenceProperties.Assembly);
Compilation\ReferenceManagerTests.cs (10)
2271WithProperties(MetadataReferenceProperties.Assembly.WithAliases(ImmutableArray.Create("Z")).WithRecursiveAliases(true)), 2296WithProperties(MetadataReferenceProperties.Assembly.WithAliases(ImmutableArray.Create("Z")).WithRecursiveAliases(true)), 2330{ "a", (PortableExecutableReference)aRef.WithProperties(MetadataReferenceProperties.Assembly.WithRecursiveAliases(true)) } 2359{ "a", (PortableExecutableReference)aRef.WithProperties(MetadataReferenceProperties.Assembly) } 2397aRef.WithProperties(MetadataReferenceProperties.Assembly.WithAliases(ImmutableArray.Create("Y")).WithRecursiveAliases(true)), 2432aRef.WithProperties(MetadataReferenceProperties.Assembly.WithAliases(ImmutableArray.Create("Y")).WithRecursiveAliases(true)), 2469aRef.WithProperties(MetadataReferenceProperties.Assembly.WithAliases(ImmutableArray.Create("Y")).WithRecursiveAliases(true)), 2470aRef.WithProperties(MetadataReferenceProperties.Assembly.WithAliases(ImmutableArray.Create("Y")).WithRecursiveAliases(true)), 2509aRef.WithProperties(MetadataReferenceProperties.Assembly.WithAliases(ImmutableArray.Create("Y", "Y")).WithRecursiveAliases(true)), 2510dRef.WithProperties(MetadataReferenceProperties.Assembly.WithAliases(ImmutableArray.Create("Z")).WithRecursiveAliases(true)),
Microsoft.CodeAnalysis.EditorFeatures (1)
Interactive\InteractiveSession.cs (1)
187(path, metadataService) => (MetadataReference)metadataService.GetReference(path, MetadataReferenceProperties.Assembly),
Microsoft.CodeAnalysis.ExternalAccess.FSharp (2)
VS\IFSharpWorkspaceProjectContextFactory.cs (2)
159_vsProjectContext.AddProjectReference(reference._vsProjectContext, MetadataReferenceProperties.Assembly); 188=> _vsProjectContext.AddMetadataReference(referencePath, MetadataReferenceProperties.Assembly);
Microsoft.CodeAnalysis.Features (2)
AddImport\CodeActions\AssemblyReferenceCodeAction.cs (1)
97var reference = service.GetReference(resolvedPath, MetadataReferenceProperties.Assembly);
SemanticSearch\SemanticSearchUtilities.cs (1)
41metadataReferences.Add(metadataService.GetReference(path, MetadataReferenceProperties.Assembly));
Microsoft.CodeAnalysis.InteractiveHost (2)
Interactive\Core\InteractiveHost.Service.cs (2)
320var resolvedReferences = state.ScriptOptions.MetadataResolver.ResolveReference(reference, baseFilePath: null, properties: MetadataReferenceProperties.Assembly); 554var resolvedReferences = rspMetadataResolver.ResolveReference(cmdLineReference.Reference, baseFilePath: null, properties: MetadataReferenceProperties.Assembly);
Microsoft.CodeAnalysis.Scripting (3)
Hosting\Resolvers\RuntimeMetadataReferenceResolver.cs (1)
30MetadataReferenceProperties.Assembly.WithAliases(ImmutableArray.Create("<implicit>"));
Script.cs (1)
240MetadataReferenceProperties.Assembly.WithAliases(ImmutableArray.Create("<host>")).WithRecursiveAliases(true);
ScriptOptions.cs (1)
200MetadataReferenceProperties.Assembly.WithRecursiveAliases(true);
Microsoft.CodeAnalysis.Scripting.TestUtilities (1)
TestRuntimeMetadataReferenceResolver.cs (1)
17private static readonly MetadataReferenceProperties s_resolvedMissingAssemblyReferenceProperties = MetadataReferenceProperties.Assembly.WithAliases(ImmutableArray.Create("<implicit>"));
Microsoft.CodeAnalysis.Scripting.UnitTests (7)
RuntimeMetadataReferenceResolverTests.cs (7)
37var actualReferences = resolver.ResolveReference("nuget:N/1.0", baseFilePath: null, properties: MetadataReferenceProperties.Assembly); 40actualReferences = resolver.ResolveReference("nuget:N/2.0", baseFilePath: null, properties: MetadataReferenceProperties.Assembly); 43actualReferences = resolver.ResolveReference("_2.dll", baseFilePath: null, properties: MetadataReferenceProperties.Assembly); 46actualReferences = resolver.ResolveReference("_3.dll", baseFilePath: null, properties: MetadataReferenceProperties.Assembly); 55actualReferences = resolver.ResolveReference("nuget:N/1.0", baseFilePath: null, properties: MetadataReferenceProperties.Assembly); 58actualReferences = resolver.ResolveReference("_2.dll", baseFilePath: null, properties: MetadataReferenceProperties.Assembly); 61actualReferences = resolver.ResolveReference("_3.dll", baseFilePath: null, properties: MetadataReferenceProperties.Assembly);
Microsoft.CodeAnalysis.Test.Utilities (2)
Mocks\TestMetadataReference.cs (2)
20: base(MetadataReferenceProperties.Assembly, fullPath) 66: base(MetadataReferenceProperties.Assembly)
Microsoft.CodeAnalysis.UnitTests (4)
MetadataReferences\MetadataReferencePropertiesTests.cs (1)
36Assert.Equal(MetadataReferenceProperties.Assembly, new MetadataReferenceProperties(MetadataImageKind.Assembly, ImmutableArray<string>.Empty, false));
MetadataReferences\MetadataReferenceTests.cs (3)
63var properties = explicitProperties ? MetadataReferenceProperties.Assembly : default; 131explicitProperties ? MetadataReferenceProperties.Assembly : default); 164explicitProperties ? MetadataReferenceProperties.Assembly : default);
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (1)
Compilation\CompilationAPITests.vb (1)
2425MyBase.New(MetadataReferenceProperties.Assembly)
Microsoft.VisualStudio.LanguageServices (1)
ProjectSystem\MiscellaneousFilesWorkspace.cs (1)
139select manager.CreateMetadataReferenceSnapshot(fullPath, MetadataReferenceProperties.Assembly);
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (1)
ProjectSystemShim\CPS\CSharpReferencesTests.cs (1)
119project1.AddMetadataReference(project2.BinOutputPath, MetadataReferenceProperties.Assembly);
Microsoft.VisualStudio.LanguageServices.UnitTests (20)
ProjectSystemShim\VisualStudioProjectTests\MetadataToProjectReferenceConversionTests.vb (19)
28project2.AddMetadataReference(ReferencePath, MetadataReferenceProperties.Assembly) 43project2.RemoveMetadataReference(ReferencePath, MetadataReferenceProperties.Assembly) 65project2.AddMetadataReference(ReferencePath, MetadataReferenceProperties.Assembly) 80project2.RemoveMetadataReference(ReferencePath, MetadataReferenceProperties.Assembly) 100referencingProject.AddMetadataReference(ReferencePath, MetadataReferenceProperties.Assembly) 136referencingProject.AddMetadataReference(ReferencePath, MetadataReferenceProperties.Assembly) 174referencingProject.AddMetadataReference(ReferencePath, MetadataReferenceProperties.Assembly) 238referencingProject.AddMetadataReference(ReferencePath, MetadataReferenceProperties.Assembly) 263referencingProject.AddMetadataReference(ReferencePath, MetadataReferenceProperties.Assembly.WithAliases(ImmutableArray.Create("temporary"))) 272referencingProject.RemoveMetadataReference(ReferencePath, MetadataReferenceProperties.Assembly.WithAliases(ImmutableArray.Create("temporary"))) 273referencingProject.AddMetadataReference(ReferencePath, MetadataReferenceProperties.Assembly) 297referencingProject.AddMetadataReference(ReferencePath, MetadataReferenceProperties.Assembly) 306referencingProject.RemoveMetadataReference(ReferencePath, MetadataReferenceProperties.Assembly) 307referencingProject.AddMetadataReference(ReferencePath.ToUpper(), MetadataReferenceProperties.Assembly) 325project1.AddMetadataReference(ReferencePath2, MetadataReferenceProperties.Assembly) 326project2.AddMetadataReference(ReferencePath1, MetadataReferenceProperties.Assembly) 349project1.AddMetadataReference(ReferencePath2, MetadataReferenceProperties.Assembly) 350project2.AddMetadataReference(ReferencePath1, MetadataReferenceProperties.Assembly) 367project.AddMetadataReference(ReferencePath, MetadataReferenceProperties.Assembly)
ProjectSystemShim\VisualStudioProjectTests\WorkspaceChangedEventTests.vb (1)
84project.AddMetadataReference("Z:\Test.dll", MetadataReferenceProperties.Assembly)
Microsoft.VisualStudio.LanguageServices.VisualBasic (5)
ProjectSystemShim\TempPECompiler.TempPEProject.vb (1)
42.Select(Function(path) metadataService.GetReference(path, MetadataReferenceProperties.Assembly))
ProjectSystemShim\VisualBasicProject.vb (4)
83ProjectSystemProject.AddMetadataReference(wszFileName, MetadataReferenceProperties.Assembly) 342ProjectSystemProject.RemoveMetadataReference(oldRuntimeLibrary, MetadataReferenceProperties.Assembly) 350If ProjectSystemProject.ContainsMetadataReference(newRuntimeLibrary, MetadataReferenceProperties.Assembly) Then 353ProjectSystemProject.AddMetadataReference(newRuntimeLibrary, MetadataReferenceProperties.Assembly)