How to use [RequiresPreviewFeaturesAttribute] with Razor .cshtml file #61399
Replies: 2 comments 11 replies
-
@buyaa-n maybe you can help here? |
Beta Was this translation helpful? Give feedback.
-
That should work, but it would not work if
EDIT |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi Team,
I'm having some preview features that are being used besides other places inside Razor pages.
While adding new attribute to
.cs
files works as it should, I'm having issues with adding[RequiresPreviewFeatures]
attribute to Razor .cshtml page - actually I can add this attribute, but during the validation I'm having the following error:And here is how my recent attempt to add the attribute to Razor page looks like:

Would please somebody suggest a way how to add the needed attribute to the Razor page?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions