I currently have an application hosted that was built using ASP.NET Core 2.0, and that used the following NuGet package,
GitHub - uhaciogullari/SimpleMvcSitemap: A simple library for creating sitemap files inside ASP.NET MVC and ASP.NET Core MVC applications[
^], it was more than enough for me.
I was able to generate the sitemap for dynamic content, blogs and more, and it was accepted by Bing and Google Webmaster etc. too. I am sure you will be able to use it as well. One thing, it is not a plug-and-play, it is a tool that you can use to generate the sitemap, you will have to manually add the nodes.