I am currently following this guide -> Link to asp.net website
As the guide says I added all the necessary packages via the nuget console and added the necessary usings
I just had this problem. Very frustrating.
I resolved it by adding this in the references at the top of the code page
using System.Web.OData.Extensions;
Right clicking the method did not bring up the resolve menu item either.
Reinstalling everything did no resolve anything for me.