C
C#3y ago
Thinker

Things require preview features... despite having enabled preview features [Answered]

I'm getting an error saying that a type requires opting into preview features because it's from an assembly which has preview features enabled, yet I've also enabled preview features in the current assembly. This doesn't make any sense. I've enabled <EnablePreviewFeatures>true</EnablePreviewFeatures> in the csproj but the errors still appear.
4 Replies
Thinker
ThinkerOP3y ago
And the target framework is .NET 6
ero
ero3y ago
Maybe <LangVersion/> set to preview?
Thinker
ThinkerOP3y ago
That... seems to have fixed it Makes sense I suppose
Accord
Accord3y ago
✅ This post has been marked as answered!

Did you find this page helpful?