30 references to CreateFromImage
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (1)
CodeGen\CodeGenImplicitlyTypeArraysTests.cs (1)
284var mscorlib17626 = MetadataReference.CreateFromImage(Net461.Resources.mscorlib);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (1)
Attributes\AttributeTests.cs (1)
3165var references = new[] { MetadataReference.CreateFromImage(TestResources.SymbolsTests.Metadata.AttributeTestDef01) };
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (1)
EditAndContinue\StatementEditingTests.cs (1)
3724delegateDefs = MetadataReference.CreateFromImage(File.ReadAllBytes(tempAssembly.Path));
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (8)
Compilation\ReferenceManagerTests.cs (2)
105var v1 = MetadataReference.CreateFromImage(TestResources.General.C1); 106var v2 = MetadataReference.CreateFromImage(TestResources.General.C2);
Symbols\CorLibrary\CorTypes.cs (1)
99assemblies = MetadataTestHelpers.GetSymbolsForReferences(mrefs: new[] { MetadataReference.CreateFromImage(Net50.Resources.SystemRuntime) });
Symbols\Metadata\PE\LoadingMethods.cs (4)
1263var longFormRef = MetadataReference.CreateFromImage(TestResources.MetadataTests.Invalid.LongTypeFormInSignature); 1287var lib = MetadataReference.CreateFromImage(TestResources.MetadataTests.Invalid.Signatures.SignatureCycle2); 1307var lib = MetadataReference.CreateFromImage(TestResources.MetadataTests.Invalid.Signatures.TypeSpecInWrongPlace); 1370var references = new[] { MetadataReference.CreateFromImage(TestResources.SymbolsTests.Metadata.PublicAndPrivateFlags) };
Symbols\TypeResolutionTests.cs (1)
122MetadataReference.CreateFromImage(File.ReadAllBytes(typeof(TypeTests).GetTypeInfo().Assembly.Location))
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (2)
Utilities\SymbolEquivalenceComparerTests.cs (2)
1829r1 = MetadataReference.CreateFromImage(bytes); 1830r2 = MetadataReference.CreateFromImage(bytes);
Microsoft.CodeAnalysis.UnitTests (4)
MetadataReferences\MetadataReferenceTests.cs (4)
66: MetadataReference.CreateFromImage(peImage.AsEnumerable(), properties); 82: MetadataReference.CreateFromImage(peImage.AsEnumerable(), MetadataReferenceProperties.Module); 433r = MetadataReference.CreateFromImage(TestResources.General.C1); 439r = MetadataReference.CreateFromImage(TestResources.General.C1, filePath: @"c:\blah");
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (6)
Attributes\AttributeTests.vb (6)
762{MetadataReference.CreateFromImage(TestResources.SymbolsTests.Metadata.AttributeTestDef01)}, 844{MetadataReference.CreateFromImage(TestResources.SymbolsTests.Metadata.AttributeTestDef01)}, 897{MetadataReference.CreateFromImage(TestResources.SymbolsTests.Metadata.AttributeTestDef01)}, 934{MetadataReference.CreateFromImage(TestResources.SymbolsTests.Metadata.AttributeTestDef01)}, 1060{MetadataReference.CreateFromImage(TestResources.SymbolsTests.Metadata.AttributeTestDef01)}, 2723{MetadataReference.CreateFromImage(TestResources.SymbolsTests.Metadata.AttributeTestDef01)})
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (4)
SymbolsTests\CorLibrary\CorTypes.vb (1)
83assemblies = MetadataTestHelpers.GetSymbolsForReferences({MetadataReference.CreateFromImage(Net50.Resources.SystemRuntime)})
SymbolsTests\Metadata\PE\LoadingMethods.vb (1)
945Dim references = {MetadataReference.CreateFromImage(TestResources.SymbolsTests.Metadata.PublicAndPrivateFlags)}
SymbolsTests\MetadataFileReferenceCompilationTests.vb (2)
20Dim ref = MetadataReference.CreateFromImage({}, filePath:="Goo.dll") 99references:={MetadataReference.CreateFromImage(TestResources.General.C2)},
Microsoft.CodeAnalysis.VisualBasic.Test.Utilities (1)
MetadataHelpers.vb (1)
32refs.Add(MetadataReference.CreateFromImage(bytes))
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (1)
Workspaces\TestWorkspace_XmlConsumption.cs (1)
812references.Add(MetadataReference.CreateFromImage(content, filePath: reference.Value));
Microsoft.Gen.Logging.Unit.Tests (1)
ParserTests.cs (1)
671MetadataReference[] additionalReferences = { MetadataReference.CreateFromImage(referencedImage) };