Your extension method hasn't been defined properly in the sample project.
- The ValidationExtensions class must be static
- The EnsureValidDate8601 method must be static
- The extension method must have the "this" prefix on the first parameter.
After fixing these problems it compiles fine. Here's what the code should look like:
public static class ValidationExtensions { public static IRuleBuilderOptions<T, string> EnsureValidDate8601<T>(this IRuleBuilder<T, string> ruleBuilder) { return ruleBuilder.SetValidator(new ValidDate8601()); } }