Path resolution in #aspnetcore has always been a challenge, so RickStrahl explores building it from scratch. Love it but wish it was just part of the native #dotnet framework already! https://link.content360.io/v13kc7r
Resolving Paths To Server Relative Paths in .NET Code

ASP.NET Core has support for resolving Urls in Controllers and Razor Pages via embedded `~/` links in Views and via `Url.Content()`. But, these features are tied to Controllers or Razor Pages - what if you need to resolve Urls elsewhere, in middleware or even inside of business logic? In this post I describe how you can build a couple of helpers that are more flexible and also provide some additional functionality of resolving site root and relative paths to full site root paths.

Dew Drop Weekly Newsletter 436 - Week Ending June 13, 2025

Here are this week's top links from the Morning Dew. Thanks for following!

Zoho Campaigns

Using a content security policy with static assets in Blazor .NET 10

https://github.com/damienbod/BlazorSecurityNet10

#blazor #aspnetcore #dotnet #csp #security #owasp

GitHub - damienbod/BlazorSecurityNet10: Blazor .NET 10 CSP with static assets

Blazor .NET 10 CSP with static assets. Contribute to damienbod/BlazorSecurityNet10 development by creating an account on GitHub.

GitHub
Introducing RazorSharpener

RazorSharpener is a Razor compiler and renderer

.NET and .NET Framework June 2025 servicing releases updates - .NET Blog

A recap of the latest servicing updates for .NET and .NET Framework for June 2025.

.NET Blog