Having just the @inherits Custom.Hybrid.Razor12
at the top of the template breaks it when using DNN objects.
... The type or namespace name 'Portal' does not exist in the namespace 'Dnn' (are you missing an assembly reference?)...
Adding @inherits ToSic.Sxc.Dnn.RazorComponent
fixes it, everything displays properly.
My question is do I need both or just the latter? Everything seems to work fine if I remove @inherits Custom.Hybrid.Razor12
, but perhaps there's a better way to have the DNN objects without breaking the template. Or it may be a bug?