Class VerifierDiagnosticCodes
- Namespace
- DotBoxD.Kernels.Verifier.Diagnostics
- Assembly
- DotBoxD.Kernels.Verifier.dll
Public, maintained reference for the V-* diagnostic codes emitted by
IGeneratedAssemblyVerifier through Diagnostics.
Consumers should reference these constants instead of hard-coding magic strings, and can use
All / TryGetReference(string, out VerifierDiagnosticReference) to map a code to its documented meaning,
likely cause, category, and remediation.
public static class VerifierDiagnosticCodes
- Inheritance
-
VerifierDiagnosticCodes
- Inherited Members
Fields
Array
An array allocation uses an element type other than the allowed DotBoxD.Kernels value type.
public const string Array = "V-ARRAY"
Field Value
AssemblyReference
An assembly reference is not on the policy allow-list.
public const string AssemblyReference = "V-ASM-REF"
Field Value
CompiledShape
The compiled Execute/function shape does not match the required DotBoxD.Kernels dispatch shape.
public const string CompiledShape = "V-COMPILED-SHAPE"
Field Value
ControlFlow
A branch targets an offset that is not a valid instruction boundary.
public const string ControlFlow = "V-CONTROL-FLOW"
Field Value
CustomAttribute
The generated assembly carries a custom attribute, which is not allowed.
public const string CustomAttribute = "V-CUSTOM-ATTR"
Field Value
Exception
A method body declares exception handlers, which are not allowed.
public const string Exception = "V-EXCEPTION"
Field Value
ExecuteSignature
The Execute method signature does not match the required DotBoxD.Kernels entrypoint signature.
public const string ExecuteSignature = "V-EXECUTE-SIGNATURE"
Field Value
Field
The generated type declares fields, which is not allowed.
public const string Field = "V-FIELD"
Field Value
FieldStatic
The generated type declares a mutable static field, which is not allowed.
public const string FieldStatic = "V-FIELD-STATIC"
Field Value
FunctionSignature
A generated Fn_* helper does not match the required DotBoxD.Kernels function signature.
public const string FunctionSignature = "V-FUNCTION-SIGNATURE"
Field Value
Generic
The generated type or a method declares generic parameters, which are not allowed.
public const string Generic = "V-GENERIC"
Field Value
IlFormat
A method body contained malformed or unreadable IL.
public const string IlFormat = "V-IL-FORMAT"
Field Value
ManifestHash
Assembly hash is missing from the manifest or does not match the artifact bytes.
public const string ManifestHash = "V-MANIFEST-HASH"
Field Value
ManifestIdentity
Manifest identity does not match the expected verification context, or none was supplied.
public const string ManifestIdentity = "V-MANIFEST-IDENTITY"
Field Value
Member
A member (method/field) reference or local call target is not allowed by policy.
public const string Member = "V-MEMBER"
Field Value
MetadataShape
A disallowed metadata table is present (interfaces, properties, events, nested types, layout, and similar).
public const string MetadataShape = "V-METADATA-SHAPE"
Field Value
MethodAttribute
A method uses unsupported attributes (virtual/abstract/synchronized/native/internal-call/non-static).
public const string MethodAttribute = "V-METHOD-ATTR"
Field Value
MethodBody
A generated executable method is missing its method body.
public const string MethodBody = "V-METHOD-BODY"
Field Value
MethodName
A method name is not an expected generated method name.
public const string MethodName = "V-METHOD-NAME"
Field Value
MethodPInvoke
A method carries P/Invoke attributes.
public const string MethodPInvoke = "V-METHOD-PINVOKE"
Field Value
MethodSpecial
A disallowed special method (such as .cctor or Finalize) is present.
public const string MethodSpecial = "V-METHOD-SPECIAL"
Field Value
ModuleSurface
Module-level (<Module>) methods or fields are present, which is not allowed.
public const string ModuleSurface = "V-MODULE-SURFACE"
Field Value
OpCode
An IL opcode used in a method body is not on the allow-list or is explicitly forbidden.
public const string OpCode = "V-OPCODE"
Field Value
Operand
An argument or local operand index is out of range for the method.
public const string Operand = "V-OPERAND"
Field Value
PInvoke
The assembly carries P/Invoke (ImplMap) metadata, which is not allowed.
public const string PInvoke = "V-PINVOKE"
Field Value
PeEntrypoint
Generated artifact defines an entrypoint, which is not allowed.
public const string PeEntrypoint = "V-PE-ENTRYPOINT"
Field Value
PeFormat
Portable Executable container is malformed or not a valid DotBoxD.Kernels DLL.
public const string PeFormat = "V-PE-FORMAT"
Field Value
PeMetadata
Assembly has no CLR metadata or CLR header.
public const string PeMetadata = "V-PE-METADATA"
Field Value
PeMixed
Assembly is mixed-mode or contains native code.
public const string PeMixed = "V-PE-MIXED"
Field Value
PeNative
Assembly contains native PE or CLR header directories.
public const string PeNative = "V-PE-NATIVE"
Field Value
PeSection
Assembly contains a disallowed PE section or unsafe section permissions.
public const string PeSection = "V-PE-SECTION"
Field Value
PublicSurface
The public surface is wrong: extra types/methods, missing Execute, or bad visibility/name.
public const string PublicSurface = "V-PUBLIC-SURFACE"
Field Value
Resource
The assembly embeds resources, which are not allowed.
public const string Resource = "V-RESOURCE"
Field Value
Security
The assembly carries declarative security metadata, which is not allowed.
public const string Security = "V-SECURITY"
Field Value
Stack
The operand stack underflowed, mismatched the signature, or branch heights are inconsistent.
public const string Stack = "V-STACK"
Field Value
StackType
A value on the operand stack has a type that is not allowed at that position.
public const string StackType = "V-STACK-TYPE"
Field Value
TypeForbidden
A type reference matches a policy-forbidden prefix.
public const string TypeForbidden = "V-TYPE-FORBIDDEN"
Field Value
TypeReference
A type reference is not on the policy allow-list.
public const string TypeReference = "V-TYPE-REF"
Field Value
TypeShape
The generated type is not a static (abstract+sealed) non-interface type.
public const string TypeShape = "V-TYPE-SHAPE"
Field Value
Properties
All
The complete, maintained catalog of verifier diagnostic codes. Every V-* code that
IGeneratedAssemblyVerifier can emit has exactly one entry here.
public static IReadOnlyList<VerifierDiagnosticReference> All { get; }
Property Value
Methods
TryGetReference(string, out VerifierDiagnosticReference)
Looks up the documented reference for a diagnostic code.
Returns false for unknown codes; callers on the security path should treat
an unknown code conservatively rather than assuming it is benign.
public static bool TryGetReference(string code, out VerifierDiagnosticReference reference)
Parameters
codestringreferenceVerifierDiagnosticReference