Net Framework 4.5

HttpClient client = new HttpClient(); string result = await client.GetStringAsync("http://example.com"); Console.WriteLine(result);

: .NET 4.5 was a breakthrough for async programming, but it’s now legacy. Use it for maintenance; migrate to .NET 4.8 or .NET (Core) 6/8 for new development. net framework 4.5