Skip to main content

DYNDB1003: Interface not found

FieldValue
CodeDYNDB1003
SeverityWarning

Message

Interface '{0}' required by extension methods could not be found for builder '{1}'

Description

The interface extended by marked extension methods could not be found in the compilation. This may indicate a missing reference or incorrect interface name. Verify that the interface type exists and is accessible from the current project.

Example

The following code triggers this diagnostic:

public static class MyExtensions
{
[GenerateWrapper]
public static ICustomInterface WithCustomBehavior(
this ICustomInterface builder)
{
// ICustomInterface is not found in the compilation
return builder;
}
}

Fix

The corrected version:

// Ensure the interface exists and is referenced
public static class MyExtensions
{
[GenerateWrapper]
public static IWithConditionExpression<T> WithAuditCondition<T>(
this IWithConditionExpression<T> builder)
{
return builder;
}
}