WAGONN.AspNetCore.SEOHelper 1.0.0

dotnet add package WAGONN.AspNetCore.SEOHelper --version 1.0.0
NuGet\Install-Package WAGONN.AspNetCore.SEOHelper -Version 1.0.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="WAGONN.AspNetCore.SEOHelper" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add WAGONN.AspNetCore.SEOHelper --version 1.0.0
#r "nuget: WAGONN.AspNetCore.SEOHelper, 1.0.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install WAGONN.AspNetCore.SEOHelper as a Cake Addin
#addin nuget:?package=WAGONN.AspNetCore.SEOHelper&version=1.0.0

// Install WAGONN.AspNetCore.SEOHelper as a Cake Tool
#tool nuget:?package=WAGONN.AspNetCore.SEOHelper&version=1.0.0

AspNetCore.SEOHelper

Forked package: <a href="https://github.com/esty-c/AspNetCore.SEOHelper" target="_blank">esty-c/AspNetCore.SEOHelper</a>

Forked Nuget package: <a href="https://www.nuget.org/packages/AspNetCore.SEOHelper/">AspNetCore.SEOHelper<a/>

Helps to create routing robots.txt and sitemap.xml for asp.net core project.

Routing for <a href="https://codingwithesty.com/search-engine-optimization-library-for-dot-net-code-developers#routingrobotstxt"> robots.txt</a>

app.UseRobotsTxt(env.ContentRootPath);

Routing for <a href="https://codingwithesty.com/search-engine-optimization-library-for-dot-net-code-developers#routesitemapxml">sitemap.xml</a>

  app.UseXMLSitemap(env.ContentRootPath);

Creating SEO friendly URL

    string queryString = "Asp.Net MVC Tutorial Part-1";
    var seoQueryString = queryString.ToSEOQueryString();
    var url = $"http://www.example.com/{seoQueryString}";

How to create sitemap.xml <a href="https://codingwithesty.com/search-engine-optimization-library-for-dot-net-code-developers#createsitemap">click for details</a>

          var list = new List<SitemapNode>();
          list.Add(new SitemapNode { LastModified = DateTime.UtcNow, Priority = 0.8, Url = "https://codingwithesty.com/serilog-mongodb-in-asp-net-core", Frequency = SitemapFrequency.Daily });
          list.Add(new SitemapNode { LastModified = DateTime.UtcNow, Priority = 0.8, Url = "https://codingwithesty.com/logging-in-asp-net-core", Frequency = SitemapFrequency.Yearly });

          new SitemapDocument().CreateSitemapXML(list, _env.ContentRootPath);
      

How to create custom-sitemap-name.xml for multi-language web sites

          var list = new List<SitemapNode>();
          list.Add(new SitemapNode { LastModified = DateTime.UtcNow, Priority = 0.8, Url = "https://codingwithesty.com/serilog-mongodb-in-asp-net-core", Frequency = SitemapFrequency.Daily });
          list.Add(new SitemapNode { LastModified = DateTime.UtcNow, Priority = 0.8, Url = "https://codingwithesty.com/logging-in-asp-net-core", Frequency = SitemapFrequency.Yearly });

          new SitemapDocument().CreateSitemapXML(list, _env.ContentRootPath, "sitemap-tr.xml");
      

Loading Existing sitemap.xml

List items = new SitemapDocument().LoadFromFile(_env.ContentRootPath);

Loading Existing custom-sitemap-name.xml

List items = new SitemapDocument().LoadFromFile(_env.ContentRootPath, "sitemap-tr.xml");
Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.0 142 2/13/2024