Hi Nico,
thanks for this information. This was a change with .NET Core that I missed.
Making HTTP Requests with XDocument.Load is now only available from the full .NET Framework. XDocument.Load only loads it locally. I've made a change to the sample code to use the HttpClient before using XDocument:
Code:
var httpClient = new HttpClient();
using (Stream stream = await httpClient.GetStreamAsync("http://csharp.christiannagel.com/feed/atom/"))
{
XNamespace ns = "http://www.w3.org/2005/Atom";
XDocument doc = XDocument.Load(stream);
//...
The code is already available on
https://github.com/ProfessionalCShar...ssionalCSharp6
Hope this helps,