public static bool HasUnsuportedAttributes()

in src/Microsoft.NET.Sdk.Functions.Generator/MethodInfoExtensions.cs [197:217]


        public static bool HasUnsuportedAttributes(this MethodDefinition method, out string error)
        {
            error = string.Empty;
            var disabled = method.GetDisabled();
            if (disabled is string disabledStr &&
                disabledStr.StartsWith("%") &&
                disabledStr.EndsWith("%"))
            {
                error = "'%' expressions are not supported for 'Disable'. Use 'Disable(\"settingName\") instead of 'Disable(\"%settingName%\")'";
                return true;
            }
            else if (disabled is Type)
            {
                error = "the constructor 'DisableAttribute(Type)' is not supported.";
                return true;
            }
            else
            {
                return false;
            }
        }