Skip to content

PolicyLayer

Namespace: Dotsider.Core.Analysis.Models

Assembly: Dotsider.Core.dll

Identifies which layer of .NET Framework binding policy rewrote a requested assembly identity. The CLR walks app config first, then publisher policy (unless bypassed by <publisherPolicy apply="no"/>), then machine.config; later layers override earlier ones, so the effective winner is machine.config > publisher > app > framework unification.

public enum PolicyLayer

A redirect declared in the application’s *.exe.config/*.dll.config.

Returns: PolicyLayer

AppConfig = 3

The effective identity was anchored by a <codeBase> element rather than a version redirect — codeBase entries can come from any policy layer above.

Returns: PolicyLayer

CodeBase = 4

The CLR’s built-in unification of well-known framework public key tokens.

Returns: PolicyLayer

FrameworkUnification = 0

A redirect declared in the architecture-correct %WINDIR%\Microsoft.NET\Framework[64]\v4.0.30319\Config\machine.config.

Returns: PolicyLayer

MachineConfig = 1

A redirect declared in a GAC-resident policy.<major>.<minor>.<simpleName> publisher-policy assembly.

Returns: PolicyLayer

PublisherPolicy = 2