Cuemon.Extensions.FileProviders.Physical 10.7.0

Prefix Reserved
There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package Cuemon.Extensions.FileProviders.Physical --version 10.7.0
                    
NuGet\Install-Package Cuemon.Extensions.FileProviders.Physical -Version 10.7.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="Cuemon.Extensions.FileProviders.Physical" Version="10.7.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Cuemon.Extensions.FileProviders.Physical" Version="10.7.0" />
                    
Directory.Packages.props
<PackageReference Include="Cuemon.Extensions.FileProviders.Physical" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Cuemon.Extensions.FileProviders.Physical --version 10.7.0
                    
#r "nuget: Cuemon.Extensions.FileProviders.Physical, 10.7.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.
#:package Cuemon.Extensions.FileProviders.Physical@10.7.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Cuemon.Extensions.FileProviders.Physical&version=10.7.0
                    
Install as a Cake Addin
#tool nuget:?package=Cuemon.Extensions.FileProviders.Physical&version=10.7.0
                    
Install as a Cake Tool

Cuemon.Extensions.FileProviders.Physical for .NET

About

Cuemon.Extensions.FileProviders.Physical adds PortablePhysicalFileProvider, a physical file-system-backed IFileProvider for applications that need case-insensitive path lookups across operating systems.

It decorates PhysicalFileProvider, resolves file and directory segments using ordinal, case-insensitive matching, and preserves the physical casing reported by the file system when returning file info, directory contents, and change tokens.

Successful lookups are cached for the lifetime of the provider by using case-insensitive logical keys that normalize supported directory separators together with redundant leading and repeated separators. Equivalent requests such as assets/logo.svg, /assets/logo.svg, and assets//logo.svg therefore share the same successful cache entry.

Supported Frameworks

This package targets .NET 10, .NET 9, and .NET Standard 2.0.

Why Pick This Package

  • Built on Microsoft.Extensions.FileProviders.Physical and exposed through the familiar IFileProvider abstraction
  • Resolves file and directory paths case-insensitively, including nested segments
  • Treats ambiguous case collisions as not found instead of selecting an arbitrary file or directory
  • Preserves PhysicalFileProvider behavior for exclusion filters, polling options, and wildcard watch filters

Installation

dotnet add package Cuemon.Extensions.FileProviders.Physical

Quick Start

using Cuemon.Extensions.FileProviders;

var contentRoot = @"C:\app\wwwroot";
using var files = new PortablePhysicalFileProvider(contentRoot);

var logo = files.GetFileInfo("assets/images/logo.svg");
if (logo.Exists)
{
    Console.WriteLine(logo.Name);
    Console.WriteLine(logo.PhysicalPath);
}

var images = files.GetDirectoryContents("ASSETS/IMAGES");
var changeToken = files.Watch("assets/images/logo.svg");

If the physical file system contains Assets/Images/Logo.svg, the lookup above still resolves it. If the same logical path maps to multiple physical entries that differ only by casing, such as logo.svg and Logo.svg, the provider returns not-found results and a null change token for literal watch filters instead of choosing one entry.

Performance Model

  • Successful resolved paths are cached, so subsequent successful lookups avoid repeated path traversal.
  • Uncached resolution enumerates each directory needed to resolve the requested path.
  • A segment must be fully inspected to prove uniqueness or detect a case-insensitive collision, so cold lookup cost grows with directory width.
  • A cold path lookup is therefore approximately proportional to the sum of the sibling counts in the traversed directories.
  • Misses and collisions are deliberately not cached and are re-evaluated on every call.
  • Repeated unresolved requests in wide directories can be substantially more expensive than successful cache hits.
  • If arbitrary user-controlled paths reach this provider, consider upstream validation, response caching, rate limiting, or similar controls.
  • Previously successful logical paths retain the provider's stable-topology cache behavior for the lifetime of the provider instance.

Documentation

API documentation for Cuemon packages is published at docs.cuemon.net.

Contributing

Contributions and issue reports are welcome in the codebeltnet/cuemon repository.

License

Licensed under the MIT License.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  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.  net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Cuemon.Extensions.FileProviders.Physical:

Package Downloads
Cuemon.Core.App

Provides a convenient set of default API additions for building a .NET application.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
11.0.0-preview.6 49 8/12/2026
10.7.0 151 8/12/2026
10.6.0 433 8/7/2026

Version: 10.7.0
Availability: .NET 10, .NET 9 and .NET Standard 2.0

# ALM
- CHANGED Dependencies have been upgraded to the latest compatible versions for all supported target frameworks (TFMs)

Version: 10.6.0
Availability: .NET 10, .NET 9 and .NET Standard 2.0

# ALM
- CHANGED Dependencies have been upgraded to the latest compatible versions for all supported target frameworks (TFMs)

# New Features
- ADDED PortablePhysicalFileProvider class providing portable, case-insensitive file path resolution with intelligent path normalization, built-in caching for successful lookups, and collision detection across supported target frameworks