12 references to CreateFromFile
Microsoft.CodeAnalysis (5)
DiagnosticAnalyzer\AnalyzerFileReference.cs (1)
225
using 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)
1043
var ref1 = AssemblyMetadata.
CreateFromFile
(exe1.Path).GetReference(aliases: ImmutableArray.Create("A1"));
1044
var ref2 = AssemblyMetadata.
CreateFromFile
(exe2.Path).GetReference(aliases: ImmutableArray.Create("A2"));
Microsoft.CodeAnalysis.Scripting (1)
Hosting\AssemblyLoader\MetadataShadowCopyProvider.cs (1)
251
newMetadata = AssemblyMetadata.
CreateFromFile
(fullPath);
Microsoft.CodeAnalysis.UnitTests (3)
MetadataReferences\AssemblyMetadataTests.cs (3)
41
Assert.Throws<ArgumentNullException>(() => AssemblyMetadata.
CreateFromFile
((string)null));
63
using (var a = AssemblyMetadata.
CreateFromFile
(mm))
142
var metadata = AssemblyMetadata.
CreateFromFile
(invalidModuleName.Path);
Microsoft.CodeAnalysis.VisualBasic (1)
CommandLine\VisualBasicCommandLineParser.vb (1)
1551
Using metadata = AssemblyMetadata.
CreateFromFile
(systemRuntimePath)