What ASP.NET SEO does
ASP.NET SEO is a C# library, published on NuGet, that holds the SEO data for an ASP.NET web application in one SeoHelper class. The class exposes properties for canonical link, site URL, meta description, meta keywords, meta robots, page title, site name and document title, plus a set of Open Graph fields including title, image, URL, type, locale, audio and video.
Values can be set in three ways: through action filter attributes on controllers and actions, by assigning properties in controller code, or with Tag Helpers in views. Relative canonical URLs are converted to absolute ones using the configured site URL or the base of the current request. Custom meta tags are added with SetCustomMeta, and robots instructions with SetMetaRobots.
Key features
- SeoHelper class
- Single class holding canonical link, site URL, meta description, keywords, robots, page title, site name, document title and Open Graph values.
- Action filter attributes
- Attributes such as [PageTitle] and [SiteName] set values on controllers and actions, and an action attribute overrides the controller one.
- Canonical URL resolution
- Accepts absolute, relative or app-relative canonical URLs and converts relative ones to absolute using SiteUrl or the request base.
- Open Graph fallbacks
- OgTitle falls back to PageTitle, OgDescription to MetaDescription, OgUrl to LinkCanonical, and OgSiteName to SiteName.
- Tag Helpers for views
- Tag Helpers render the values set through the SeoHelper class into page markup from inside Razor views.
- Custom meta tags
- SetCustomMeta adds any meta tag; keys starting with og: or fb: default to the property attribute rather than name.
- Robots instructions
- SetMetaRobots takes index and follow booleans and updates the MetaRobots value used by the page.
- Dependency injection setup
- The services. AddSeoHelper() extension method registers the helper in ConfigureServices; access then works by constructor injection or RequestServices.
- Site-wide defaults
- Default base title, site name, site URL and document title format can be configured once for the whole application.
How it works
- Install the AspNetSeo package from NuGet into an ASP.NET Core MVC project.
- Call services. AddSeoHelper() alongside services. AddMvc() in the ConfigureServices method of Startup. cs.
- Access the SeoHelper class by constructor injection or through the RequestServices object.
- Set per-page values with attributes on controllers and actions, or by assigning properties in code.
- Let the library convert relative canonical URLs to absolute ones using SiteUrl or the request base.
- Render the values in views with the supplied Tag Helpers.
- Configure default base title, site name and title format once for the application.
Integrations and platforms
Works with
- NuGet
- ASP.NET Core MVC
- ASP.NET MVC
Available as
- Web
Repository facts
- Repositorysebnilsson/AspNetSeo
- LanguageC#
- Stars56
- Forks6
- Created2017-05-09
- Last commit2025-08-26
- Open issues0
- asp-net
- asp-net-core
- asp-net-core-mvc
- asp-net-mvc
- aspnet
- aspnet-mvc
- aspnetcore
- csharp
- seo
Services and details
Does SEO work itself
Yes
No information yet on keyword research, content optimization, writes content with AI, technical audits, rank tracking, backlinks and link building, local SEO, AI search visibility, free plan or free tools, free trial, API or MCP server, WordPress plugin, browser extension, built for agencies. The website did not say; check with the vendor.
About the company
- Company sebnilsson
- Website: github.com/sebnilsson/AspNetSeo
Listing compiled from public sources and the product's own website. Last updated 2026-11-12. Report a correction or request removal. Back to GitHub repos.