81 references to CorFlags
BuildValidator (1)
Util.cs (1)
95if ((peReader.PEHeaders.CorHeader.Flags & CorFlags.ILLibrary) == 0)
Crossgen2Tasks (3)
PrepareForReadyToRunCompilation.cs (3)
344if ((peReader.PEHeaders.CorHeader.Flags & CorFlags.ILLibrary) == 0) 390if ((pereader.PEHeaders.CorHeader.Flags & CorFlags.ILOnly) != CorFlags.ILOnly)
Microsoft.CodeAnalysis (13)
Compilation\Compilation.cs (7)
2328private static CorFlags GetCorHeaderFlags(Machine machine, bool strongNameSigned, bool prefers32Bit) 2330CorFlags result = CorFlags.ILOnly; 2334result |= CorFlags.Requires32Bit; 2339result |= CorFlags.StrongNameSigned; 2344result |= CorFlags.Requires32Bit | CorFlags.Prefers32Bit;
Emit\ModulePropertiesForSerialization.cs (2)
91public CorFlags CorFlags { get; } 118CorFlags corFlags,
MetadataReader\PEModule.cs (1)
338return (_peReaderOpt.PEHeaders.CorHeader.Flags & CorFlags.Requires32Bit) != 0;
PEWriter\ExtendedPEBuilder.cs (1)
42CorFlags flags,
PEWriter\PeWriter.cs (2)
272var corFlags = properties.CorFlags; 297if (privateKeyOpt != null && corFlags.HasFlag(CorFlags.StrongNameSigned))
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (13)
CodeGen\CodeGenFunctionPointersTests.cs (1)
12753flags: CorFlags.ILOnly,
Emit\CompilationEmitTests.cs (10)
1950var flags = reader.PEHeaders.CorHeader.Flags; 1951Assert.Equal(expectSigned, flags.HasFlag(CorFlags.StrongNameSigned)); 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)
2360Assert.Equal(CorFlags.ILOnly, corHeader.Flags); 2498Assert.Equal(CorFlags.ILOnly, corHeader.Flags);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (7)
Attributes\InternalsVisibleToAndStrongNameTests.cs (7)
486Assert.Equal(CorFlags.ILOnly, metadata.Module.PEReaderOpt.PEHeaders.CorHeader.Flags); 515Assert.Equal(CorFlags.ILOnly | CorFlags.StrongNameSigned, metadata.Module.PEReaderOpt.PEHeaders.CorHeader.Flags); 596var flags = reader.PEHeaders.CorHeader.Flags; 597Assert.Equal(expectedToBeSigned, flags.HasFlag(CorFlags.StrongNameSigned)); 1537Assert.Equal(0, (int)(flags & CorFlags.StrongNameSigned)); 1988Assert.Equal(CorFlags.ILOnly, header.Flags);
Microsoft.CodeAnalysis.Test.Utilities (4)
CommonTestBase.cs (1)
517corFlags: CorFlags.ILOnly,
Metadata\ILValidation.cs (3)
51var flags = peHeaders.CorHeader.Flags; 53if (CorFlags.StrongNameSigned != (flags & CorFlags.StrongNameSigned))
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (18)
Attributes\InternalsVisibleToAndStrongNameTests.vb (11)
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) 1368Assert.Equal(CorFlags.ILOnly, peHeaders.CorHeader.Flags) 1418Assert.Equal(0, CInt(flags And CorFlags.StrongNameSigned)) 1759Assert.Equal(CorFlags.StrongNameSigned, peHeaders.CorHeader.Flags And CorFlags.StrongNameSigned) 1971Assert.True(flags.HasFlag(CorFlags.StrongNameSigned))
Emit\CompilationEmitTests.vb (7)
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)
Microsoft.DotNet.Arcade.Sdk (6)
src\SetCorFlags.cs (6)
56CorFlags parseFlags(string value) 63if (Enum.TryParse<CorFlags>(value, out var result)) 72var addFlags = parseFlags(AddFlags); 73var removeFlags = parseFlags(RemoveFlags); 83var newFlags = (reader.PEHeaders.CorHeader.Flags & ~removeFlags) | addFlags;
Microsoft.DotNet.SignTool (4)
src\ContentUtil.cs (2)
78return (header.Flags & CorFlags.StrongNameSigned) == CorFlags.StrongNameSigned;
src\RealSignTool.cs (2)
27/// The number of bytes from the start of the <see cref="CorHeader"/> to its <see cref="CorFlags"/>. 94writer.Write((UInt32)(peReader.PEHeaders.CorHeader.Flags & ~CorFlags.StrongNameSigned));
System.Reflection.Metadata (7)
System\Reflection\PortableExecutable\CorHeader.cs (2)
11public CorFlags Flags { get; } 28Flags = (CorFlags)reader.ReadUInt32();
System\Reflection\PortableExecutable\ManagedPEBuilder.cs (3)
32private readonly CorFlags _corFlags; 47CorFlags flags = CorFlags.ILOnly,
System\Reflection\PortableExecutable\ManagedTextSection.cs (2)
242CorFlags corFlags, 383private void WriteCorHeader(BlobBuilder builder, int textSectionRva, int entryPointTokenOrRva, CorFlags corFlags)
System.Reflection.MetadataLoadContext (5)
System\Reflection\TypeLoading\Modules\Ecma\EcmaModule.cs (5)
54if ((corHeader.Flags & CorFlags.NativeEntryPoint) != 0) 92CorFlags corFlags = peHeaders.CorHeader!.Flags; 95if ((corFlags & CorFlags.ILOnly) != 0) 98if ((corFlags & CorFlags.Prefers32Bit) != 0) 100else if ((corFlags & CorFlags.Requires32Bit) != 0)