AllowHardCodedValue markup option does not seem to be applied for resource bindings

Please clarify me on how the AllowHardCodedValue option works
image
(Control properties | DotVVM Documentation)

But if I have in my markup these two:
image

At runtime all is well. This happens regardless of placing the attribute on the DotvvmProperty or on the associated C# property.

image

It’s broken and allows resource bindings, but we can’t fix it as it would break too much code. I believe it should at least emit a now, it’s strange VS Extension doesn’t complain about it (I hope we have updated DotVVM in there in last 2 years)

1 Like