After updating my Visual Studio to get .Net8, our older Core 2.1 project is getting an error that I can't explain. In the views it is starting to complain about the following:
CS0234 The type or namespace name 'CreateNewOnMetadataUpdateAttribute' does not exist in the namespace 'System.Runtime.CompilerServices' (are you missing an assembly reference?)
Me and a coworker (different machine, same project) experience the same thing after this VS update. We changed nothing in the projects, code or packages. Sometimes it still builds with the error and sometimes it won't build at all.
The error is shown at the top of the views where the @usings and @model are:
I don't see others on the internet having this issue. Anybody got an idea?