You’ve already been given the correct answer above. Read the validation message, ‘LogLevel’ is ambiguous. This means it can find an a Loglevel enum or class etc in multiple namespaces so the code doesn’t know which one you want to use, you need to fully qualify the expression by putting the full namespace.