title: How to dynamically create a sitemap.xml in .NET core 2?
body: <p>Can anyone tell me how to create a Sitemap in .NET Core 2?</p>
  <p>These <a href="http://www.iaspnetcore.com/Blog/BlogPost/5a587caa42c35f3e343f9403/how-to-creating-a-xml-sitemap-middleware-in-aspnet-core" rel="noreferrer">articles</a>/<a href="https://dotnetthoughts.net/generate-dynamic-xml-sitemaps-in-aspnet5/" rel="noreferrer">alternate link</a> are not working in .NET Core 2.</p>