Meziantou.Framework.FullPath, a .NET library for safe absolute path handling, has received new features and Roslyn analyzers. New With* methods (WithName, WithNameWithoutExtension, WithExtension) allow creating modified paths from existing ones, including support for multi-extension replacements like .tar.gz. A new + operator enables appending suffixes directly to path strings. Eleven Roslyn analyzer rules (MFFP0001–MFFP0011) have been added to guide developers toward using FullPath APIs instead of System.IO.Path methods, catching redundant calls and enforcing correct usage at compile time.

3m read timeFrom meziantou.net
Post cover image
Table of contents
# New methods# The + operator# Roslyn Analyzers# Additional resources
19.9K Impressions