There is a similar question to this here but I believe that involves a different cause.
I moved a class from a newer project into an older project. Both were targeti
I eventually found the place to change it. It seems sometimes when you update your targets framework version this does not get changed.