48 references to CorHeader
BuildValidator (3)
Util.cs (3)
90peReader.PEHeaders.CorHeader is null) 95if ((peReader.PEHeaders.CorHeader.Flags & CorFlags.ILLibrary) == 0) 102return peReader.PEHeaders.CorHeader.ManagedNativeHeaderDirectory.Size != 0;
Crossgen2Tasks (4)
PrepareForReadyToRunCompilation.cs (4)
341if (peReader.PEHeaders.CorHeader == null) 344if ((peReader.PEHeaders.CorHeader.Flags & CorFlags.ILLibrary) == 0) 351return peReader.PEHeaders.CorHeader.ManagedNativeHeaderDirectory.Size != 0; 390if ((pereader.PEHeaders.CorHeader.Flags & CorFlags.ILOnly) != CorFlags.ILOnly)
ILLink.Tasks (1)
Utils.cs (1)
17 return headers.CorHeader != null;
Microsoft.Build.Tasks.Core (1)
ManifestUtil\MetadataReader.cs (1)
198CorHeader corHeader = _peReader.PEHeaders.CorHeader;
Microsoft.CodeAnalysis (1)
MetadataReader\PEModule.cs (1)
338return (_peReaderOpt.PEHeaders.CorHeader.Flags & CorFlags.Requires32Bit) != 0;
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (9)
Emit\CompilationEmitTests.cs (7)
585int entryPoint = new PEHeaders(stream).CorHeader.EntryPointTokenOrRelativeVirtualAddress; 1950var flags = reader.PEHeaders.CorHeader.Flags; 3487Assert.Equal(CorFlags.ILOnly, peHeaders.CorHeader.Flags); 3491Assert.Equal(CorFlags.ILOnly | CorFlags.Requires32Bit, peHeaders.CorHeader.Flags); 3495Assert.Equal(CorFlags.ILOnly, peHeaders.CorHeader.Flags); 3503Assert.Equal(CorFlags.ILOnly | CorFlags.Requires32Bit | CorFlags.Prefers32Bit, peHeaders.CorHeader.Flags); 3509Assert.Equal(CorFlags.ILOnly, peHeaders.CorHeader.Flags);
Emit\EmitMetadataTests.cs (2)
2243var corHeader = peHeaders.CorHeader; 2431var corHeader = peHeaders.CorHeader;
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (2)
PDB\PDBTests.cs (2)
661int peEntryPointToken = peReader.PEHeaders.CorHeader.EntryPointTokenOrRelativeVirtualAddress; 684int peEntryPointToken = peReader.PEHeaders.CorHeader.EntryPointTokenOrRelativeVirtualAddress;
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (1)
Attributes\InternalsVisibleToAndStrongNameTests.cs (1)
596var flags = reader.PEHeaders.CorHeader.Flags;
Microsoft.CodeAnalysis.Rebuild (1)
CompilationOptionsReader.cs (1)
262if (PeReader.PEHeaders.CorHeader is not { } corHeader
Microsoft.CodeAnalysis.Test.Utilities (2)
Metadata\DynamicAnalysisDataReader.cs (1)
164var resourcesDir = peReader.PEHeaders.CorHeader.ResourcesDirectory;
Metadata\ILValidation.cs (1)
51var flags = peHeaders.CorHeader.Flags;
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (15)
Attributes\InternalsVisibleToAndStrongNameTests.vb (9)
60Assert.Equal(expectedToBeSigned, headers.CorHeader.Flags.HasFlag(CorFlags.StrongNameSigned)) 394Assert.Equal(CorFlags.ILOnly, Metadata.Module.PEReaderOpt.PEHeaders.CorHeader.Flags) 427Assert.Equal(CorFlags.ILOnly Or CorFlags.StrongNameSigned, Metadata.Module.PEReaderOpt.PEHeaders.CorHeader.Flags) 1187Assert.Equal(CorFlags.StrongNameSigned, peHeaders.CorHeader.Flags And CorFlags.StrongNameSigned) 1367Assert.Equal(256, peHeaders.CorHeader.StrongNameSignatureDirectory.Size) 1368Assert.Equal(CorFlags.ILOnly, peHeaders.CorHeader.Flags) 1416Dim flags = metadata.Module.PEReaderOpt.PEHeaders.CorHeader.Flags 1759Assert.Equal(CorFlags.StrongNameSigned, peHeaders.CorHeader.Flags And CorFlags.StrongNameSigned) 1970Dim flags = reader.PEHeaders.CorHeader.Flags
Emit\CompilationEmitTests.vb (4)
2083Assert.Equal(CorFlags.ILOnly, peHeaders.CorHeader.Flags) 2087Assert.Equal(CorFlags.ILOnly Or CorFlags.Requires32Bit, peHeaders.CorHeader.Flags) 2091Assert.Equal(CorFlags.ILOnly, peHeaders.CorHeader.Flags) 2099Assert.Equal(CorFlags.ILOnly Or CorFlags.Requires32Bit Or CorFlags.Prefers32Bit, peHeaders.CorHeader.Flags)
PDB\PDBTests.vb (2)
122Dim peEntryPointToken = peReader.PEHeaders.CorHeader.EntryPointTokenOrRelativeVirtualAddress 152Dim peEntryPointToken = peReader.PEHeaders.CorHeader.EntryPointTokenOrRelativeVirtualAddress
Microsoft.DotNet.Arcade.Sdk (1)
src\SetCorFlags.cs (1)
83var newFlags = (reader.PEHeaders.CorHeader.Flags & ~removeFlags) | addFlags;
Microsoft.DotNet.SignTool (4)
src\ContentUtil.cs (3)
65CorHeader header = peReader.PEHeaders.CorHeader; 76return peReader.PEHeaders.CorHeader != null; 92return ((int)peReader.PEHeaders.CorHeader.Flags & CROSSGEN_FLAG) == CROSSGEN_FLAG;
src\RealSignTool.cs (1)
94writer.Write((UInt32)(peReader.PEHeaders.CorHeader.Flags & ~CorFlags.StrongNameSigned));
System.Reflection.MetadataLoadContext (3)
System\Reflection\TypeLoading\Modules\Ecma\EcmaModule.cs (2)
52CorHeader corHeader = peHeaders.CorHeader!; 92CorFlags corFlags = peHeaders.CorHeader!.Flags;
System\Reflection\TypeLoading\Modules\Ecma\EcmaModule.ManifestResources.cs (1)
34PEMemoryBlock resourceDirectory = pe.GetSectionData(pe.PEHeaders.CorHeader!.ResourcesDirectory.RelativeVirtualAddress);