title: Net Core Solving "Does Not Contain a Definition for Content Error" and Read as String in API
body: <p>I keep receiving an error below. One way to solve is move the code into a Controller. If I do not want to place in controller, and create a simple console app, how would I go about removing error below, while Read as String?</p>
  
  <pre><code>    static void Main()
      {
  
          HttpClient client = new HttpClient();
          client.BaseAddress = new Uri("http://api.openweathermap.org");
          var response = client.GetAsync($"/data/2.5/weather?q=London,UK&amp;appid=c44d8aa0c5e588db11ac6191c0bc6a60&amp;units=metric");
  
          // This line gives me error
          var stringResult = response.Content.ReadAsStringAsync();  
  </code></pre>
  
  <p><strong>Error:</strong> Does not contain a definition for 'Content' and no accessible extension method 'Content' accepting a first argument of type 'Task' could be found (are you missing a using directive or an assembly reference? )    </p>