I am trying to run the sample Vision API project. I basically copied and pasted the code
GoogleCredential credential = GoogleCredential.GetApplicationDefaultAsync().Result;
Additional information: One or more errors occurred.
Error deserializing JSON credential data.
gcloud beta auth application-default login
By examining the detailed build log, I found out that the packages for the Google APIs had a dependency for
9.0.1 (the latest at the time of this writing).
For whatever reason, the Google APIs packages have a dependency (which is installed along with them) on
The packages came with the wrong version!
Installing the latest version (
9.0.1 in this case) fixes the issue.