Azure TableServiceContext presents an error with CreateQuery function
If you were using azure table storage and found the following error when writing the CreateQuery function
does not contain a definition for’ ‘CreateQuery’ and no extension method ‘CreateQuery’ accepting a first argument of type..
What is happening is that other than adding Microsoft.WindowsAzure.StorageClient, you aldo need to add System.Data.Services.Client, which Visual Studio actually tells you when you attempt to build the project.
Error 1 The type ‘System.Data.Services.Client.DataServiceContext’ is defined in an assembly that is not referenced. You must add a reference to assembly ‘System.Data.Services.Client, Version=18.104.22.168, Culture=neutral, PublicKeyToken=b77a5c561934e089’.
Once you added the reference, the error will automatically go away.
Now if only there was an easy way to automatically add the missing reference in since Visual Studio knows the exact error and also what should be done..