Skip to content

Commit

Permalink
⬆️ Package upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
Marthijn van den Heuvel committed Feb 22, 2024
1 parent e83819b commit 87fef51
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,17 @@ Add [the package](https://www.nuget.org/packages/Sitemap.AspNetCore/) to your pr
# Usage
```csharp
// di setup
services.AddBaseUrlProvider<HttpContextBaseUrlProvider>();
services.AddDefaultSitemapServices();
services.AddDefaultSitemapServices<HttpContextBaseUrlProvider>();

// controller
[HttpGet]
public IActionResult Sitemap()
{
var nodes = new List<SitemapNode> { new ("page.html") };
var nodes = new List<SitemapNode> { new ("page.html"), new (Url.Action("Index")) };
var sitemap = new Sitemap(nodes);
return SitemapResult(sitemap);
}
```
```

# See also
* [Sitemap.Core package](https://github.com/marthijn/Sitemap.Core)
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="coverlet.collector" Version="6.0.0">
<PackageReference Include="coverlet.collector" Version="6.0.1">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
Expand Down
2 changes: 1 addition & 1 deletion src/Sitemap.AspNetCore/Sitemap.AspNetCore.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

<ItemGroup>
<FrameworkReference Include="Microsoft.AspNetCore.App" />
<PackageReference Include="Sitemap.Core" Version="1.1.0" />
<PackageReference Include="Sitemap.Core" Version="1.2.0" />
</ItemGroup>

</Project>

0 comments on commit 87fef51

Please sign in to comment.