I try to send a get request to web api. but visual studio 2017 doesn't make sense to HttpClient obeject methods! it draw a red line under my instance and gives the error: Error CS7069 Reference to type 'Task<>' claims it is defined in 'System.Runtime', but it could not be found. note that this is different from other errors which is occurs in UWP and Xamarin with same message.
string Baseaddress = "https://localhost:44305/api/values";
HttpClient _client = new HttpClient();
var result = await _client.GetAsync(Baseaddress);
var result = await _client.GetAsync(Baseaddress);
Remove the.Result
– rbm