Do not nest type {0}. Alternatively, change its accessibility so that it is not externally visible. If this type is defined ...

Do not nest type {0}. Alternatively, change its accessibility so that it is not externally visible. If this type is defined in a Visual Basic Module, it will be considered a nested type to other .NET languages. In that case, consider moving the type outside of the Module.