When I try to use the record keyword in my C# WPF .NET Framework file, it is recognised as a keyword, in the sense in appears in the code completion drop-down menu when you start typing, but then does not turn blue or work as it should.
keyword appearing in drop-down menu
When I use the record keyword, the error message is CS0246: The type or namespace name could not be found (are you missing a using directive or an assembly reference?).
error message when I use the keyword
According to what I've looked up, the record keyword should not need any special directives to use. I have also tried changing the .NET version, adding all the extra modifications in the visual installer, and repairing the installation many times.
I tested whether the keyword functioned correctly in some console apps. It worked in the regular .NET console app, but did not work in the .NET Framework console app.
Does anybody know a fix for this issue, or have any other ideas as to how I could tackle it? Thank you very much