title: C# project unable to find GOOGLE_APPLICATION_CREDENTIALS for google vision
body: <p>I am trying to use googles vision api with my c# project. I am using the test code they provide but for some reason my code can't find the google_application_credentials here is the error:</p>
  
  <p><em>The Application Default Credentials are not available. They are available if running in Google Compute Engine. Otherwise, the environment variable GOOGLE_APPLICATION_CREDENTIALS must be defined pointing to a file defining the credentials. See <a href="https://developers.google.com/accounts/docs/application-default-credentials" rel="nofollow noreferrer">https://developers.google.com/accounts/docs/application-default-credentials</a> for more information.</em></p>
  
  <p>Here is the code:</p>
  
  <pre><code>using System;
  using Google.Cloud.Vision.V1;
  namespace Test
  {
      public class Vision
      {
          public static void Main(String[] args)
          {
              // Instantiates a client
              var client = ImageAnnotatorClient.Create();
              // Load the image file into memory
              var image = Image.FromFile("wakeupcat.jpg");
              // Performs label detection on the image file
              var response = client.DetectLabels(image);
              foreach (var annotation in response)
              {
                  if (annotation.Description != null)
                      Console.WriteLine(annotation.Description);
              }
          }
      }
  }
  </code></pre>
  
  <p>The Documentation(<a href="https://cloud.google.com/vision/docs/reference/libraries" rel="nofollow noreferrer">https://cloud.google.com/vision/docs/reference/libraries</a>)
  tells me to export the enviornment variable <em>GOOGLE_APPLICATION_CREDENTIALS</em> which is what I do. But I still get the error above. please help!</p>