---
title: "Generate Sitemaps for All of ASP.NET Core"
url: https://daily.dev/posts/generate-sitemaps-for-all-of-asp-net-core-2qztzst3l
source_url: https://khalidabuhakmeh.com/generate-sitemaps-for-all-of-aspnet-core
type: article
source: "Khalid Abuhakmeh"
published: 2026-05-31T07:45:15.653Z
updated: 2026-05-31T09:31:16.112Z
tags: [".net", "c#", "aspnetcore"]
reading_time: 6
upvotes: 0
comments: 0
language: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Generate Sitemaps for All of ASP.NET Core

**[Khalid Abuhakmeh](https://daily.dev/sources/khalidabuhakmeh)** · 6 min read · 0 upvotes · 0 comments

## Summary

A practical guide to generating XML sitemaps in ASP.NET Core covering all major server-side paradigms: MVC controllers, Razor Pages, and Minimal APIs. Uses the open-source DotnetSitemapGenerator NuGet package combined with custom infrastructure code. Demonstrates how to annotate endpoints with custom attributes to include them in sitemap generation, and also covers database-driven dynamic pages using Entity Framework Core. A working GitHub sample is provided.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://khalidabuhakmeh.com/generate-sitemaps-for-all-of-aspnet-core>

## Similar posts on daily.dev

- [ASP.NET Core Controllers: A Practical Guide to Building REST Endpoints](https://daily.dev/posts/asp-net-core-controllers-a-practical-guide-to-building-rest-endpoints-qbrdx5rqi) · We Are .NET · 0 upvotes · 0 comments

---

Tags: [#.net](https://daily.dev/tags/.net), [#c#](https://daily.dev/tags/c#), [#aspnetcore](https://daily.dev/tags/aspnetcore)

[View this post on daily.dev](https://daily.dev/posts/generate-sitemaps-for-all-of-asp-net-core-2qztzst3l)
