12 references to CreateFromFile
Microsoft.CodeAnalysis (5)
DiagnosticAnalyzer\AnalyzerFileReference.cs (1)
225using var assembly = AssemblyMetadata.CreateFromFile(fullPath);
MetadataReference\MetadataReference.cs (4)
228/// It is recommended to use <see cref="AssemblyMetadata.CreateFromFile(string)"/> or <see cref="ModuleMetadata.CreateFromFile(string)"/> 235/// the lifetime deterministically use <see cref="AssemblyMetadata.CreateFromFile(string)"/> 293/// It is recommended to use <see cref="AssemblyMetadata.CreateFromFile(string)"/> API when creating multiple references to the same assembly. 321/// It is recommended to use <see cref="AssemblyMetadata.CreateFromFile(string)"/> API when creating multiple references to the same assembly.
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (2)
Compilation\ReferenceManagerTests.cs (2)
1043var ref1 = AssemblyMetadata.CreateFromFile(exe1.Path).GetReference(aliases: ImmutableArray.Create("A1")); 1044var ref2 = AssemblyMetadata.CreateFromFile(exe2.Path).GetReference(aliases: ImmutableArray.Create("A2"));
Microsoft.CodeAnalysis.Scripting (1)
Hosting\AssemblyLoader\MetadataShadowCopyProvider.cs (1)
251newMetadata = AssemblyMetadata.CreateFromFile(fullPath);
Microsoft.CodeAnalysis.UnitTests (3)
MetadataReferences\AssemblyMetadataTests.cs (3)
41Assert.Throws<ArgumentNullException>(() => AssemblyMetadata.CreateFromFile((string)null)); 63using (var a = AssemblyMetadata.CreateFromFile(mm)) 142var metadata = AssemblyMetadata.CreateFromFile(invalidModuleName.Path);
Microsoft.CodeAnalysis.VisualBasic (1)
CommandLine\VisualBasicCommandLineParser.vb (1)
1551Using metadata = AssemblyMetadata.CreateFromFile(systemRuntimePath)