![]() |
VOOZH | about |
dotnet add package Microsoft.Extensions.FileProviders.Physical --version 10.0.9
NuGet\Install-Package Microsoft.Extensions.FileProviders.Physical -Version 10.0.9
<PackageReference Include="Microsoft.Extensions.FileProviders.Physical" Version="10.0.9" />
<PackageVersion Include="Microsoft.Extensions.FileProviders.Physical" Version="10.0.9" />Directory.Packages.props
<PackageReference Include="Microsoft.Extensions.FileProviders.Physical" />Project file
paket add Microsoft.Extensions.FileProviders.Physical --version 10.0.9
#r "nuget: Microsoft.Extensions.FileProviders.Physical, 10.0.9"
#:package Microsoft.Extensions.FileProviders.Physical@10.0.9
#addin nuget:?package=Microsoft.Extensions.FileProviders.Physical&version=10.0.9Install as a Cake Addin
#tool nuget:?package=Microsoft.Extensions.FileProviders.Physical&version=10.0.9Install as a Cake Tool
Provides an implementation of a physical file provider, facilitating file access and monitoring on the disk. The primary type, PhysicalFileProvider, enables the lookup of files on disk and can watch for changes either via FileSystemWatcher or polling mechanisms.
FileSystemWatcher or through polling.This library can be used to look up files on disk and monitor file changes effectively.
Below is an example of how to use the PhysicalFileProvider to access files on disk and monitor changes:
using Microsoft.Extensions.FileProviders;
using Microsoft.Extensions.FileProviders.Physical;
using var provider = new PhysicalFileProvider(AppContext.BaseDirectory);
Environment.SetEnvironmentVariable("DOTNET_USE_POLLING_FILE_WATCHER", "1");
var contents = provider.GetDirectoryContents(string.Empty);
foreach (PhysicalFileInfo fileInfo in contents)
{
Console.WriteLine(fileInfo.PhysicalPath);
}
var changeToken = provider.Watch("*.txt");
changeToken.RegisterChangeCallback(_ => Console.WriteLine("Text file changed"), null);
Console.ReadLine();
The main types provided by this library are:
Microsoft.Extensions.FileProviders.PhysicalFileProviderMicrosoft.Extensions.FileProviders.PhysicalDirectoryInfoMicrosoft.Extensions.FileProviders.PhysicalFileInfoMicrosoft.Extensions.FileProviders.Physical is released as open source under the MIT license. Bug reports and contributions are welcome at the GitHub repository.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 net5.0 was computed. net5.0-windows net5.0-windows was computed. net6.0 net6.0 was computed. net6.0-android net6.0-android was computed. net6.0-ios net6.0-ios was computed. net6.0-maccatalyst net6.0-maccatalyst was computed. net6.0-macos net6.0-macos was computed. net6.0-tvos net6.0-tvos was computed. net6.0-windows net6.0-windows was computed. net7.0 net7.0 was computed. net7.0-android net7.0-android was computed. net7.0-ios net7.0-ios was computed. net7.0-maccatalyst net7.0-maccatalyst was computed. net7.0-macos net7.0-macos was computed. net7.0-tvos net7.0-tvos was computed. net7.0-windows net7.0-windows was computed. net8.0 net8.0 is compatible. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 is compatible. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 is compatible. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 netcoreapp2.0 was computed. netcoreapp2.1 netcoreapp2.1 was computed. netcoreapp2.2 netcoreapp2.2 was computed. netcoreapp3.0 netcoreapp3.0 was computed. netcoreapp3.1 netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 netstandard2.0 is compatible. netstandard2.1 netstandard2.1 was computed. |
| .NET Framework | net461 net461 was computed. net462 net462 is compatible. net463 net463 was computed. net47 net47 was computed. net471 net471 was computed. net472 net472 was computed. net48 net48 was computed. net481 net481 was computed. |
| MonoAndroid | monoandroid monoandroid was computed. |
| MonoMac | monomac monomac was computed. |
| MonoTouch | monotouch monotouch was computed. |
| Tizen | tizen40 tizen40 was computed. tizen60 tizen60 was computed. |
| Xamarin.iOS | xamarinios xamarinios was computed. |
| Xamarin.Mac | xamarinmac xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos xamarinwatchos was computed. |
Showing the top 5 NuGet packages that depend on Microsoft.Extensions.FileProviders.Physical:
| Package | Downloads |
|---|---|
|
Microsoft.Extensions.Configuration.FileExtensions
Provides a base class for file-based configuration providers used with Microsoft.Extensions.Configuration and extension methods for configuring them. |
|
|
Microsoft.Extensions.Configuration.UserSecrets
User secrets configuration provider implementation for Microsoft.Extensions.Configuration. User secrets mechanism enables you to override application configuration settings with values stored in the local secrets file. You can use UserSecretsConfigurationExtensions.AddUserSecrets extension method on IConfigurationBuilder to add user secrets provider to the configuration builder. |
|
|
Microsoft.Extensions.Hosting
Hosting and startup infrastructures for applications. |
|
|
Microsoft.AspNetCore.Hosting
ASP.NET Core hosting infrastructure and startup logic for web applications. |
|
|
Microsoft.AspNetCore.Diagnostics
ASP.NET Core middleware for exception handling, exception display pages, and diagnostics information. Includes developer exception page middleware, exception handler middleware, runtime info middleware, status code page middleware, and welcome page middleware |
Showing the top 20 popular GitHub repositories that depend on Microsoft.Extensions.FileProviders.Physical:
| Repository | Stars |
|---|---|
|
microsoft/semantic-kernel
Integrate cutting-edge LLM technology quickly and easily into your apps
|
|
|
BeyondDimension/SteamTools
🛠「Watt Toolkit」是一个开源跨平台的多功能 Steam 工具箱。
|
|
|
abpframework/abp
Open-source web application framework for ASP.NET Core! Offers an opinionated architecture to build enterprise software solutions with best practices on top of the .NET. Provides the fundamental infrastructure, cross-cutting-concern implementations, startup templates, application modules, UI themes, tooling and documentation.
|
|
|
JeffreySu/WeiXinMPSDK
微信全平台 .NET SDK, Senparc.Weixin for C#,支持 .NET Framework 及 .NET Core、.NET 10.0。已支持微信公众号、小程序、小游戏、微信支付、企业微信/企业号、开放平台、JSSDK、微信周边等全平台。 WeChat SDK for C#.
|
|
|
RayWangQvQ/BiliBiliToolPro
B 站(bilibili)自动任务工具,支持docker、青龙、k8s等多种部署方式。全面拥抱AI。敏感肌也能用。
|
|
|
umbraco/Umbraco-CMS
Umbraco is a free and open source .NET content management system helping you deliver delightful digital experiences.
|
|
|
microsurging/surging
Surging is a micro-service engine that provides a lightweight, high-performance, modular RPC request pipeline. support Event-based Asynchronous Pattern and reactive programming.
|
|
|
lukencode/FluentEmail
All in one email sender for .NET. Supports popular senders (SendGrid, MailGun, etc) and Razor templates.
|
|
|
1357310795/MyComputerManager
管理“此电脑”里删不掉的流氓“快捷方式”(包括侧边栏),同时可自己添加这类“快捷方式”
|
|
|
aspnet/JavaScriptServices
[Archived] This repository has been archived
|
|
|
reactjs/React.NET
.NET library for JSX compilation and server-side rendering of React components
|
|
|
OmniSharp/omnisharp-roslyn
OmniSharp server (HTTP, STDIO) based on Roslyn workspaces
|
|
|
microsoft/PowerApps-Samples
Sample code for Power Apps, including Dataverse, model-driven apps, canvas apps, Power Apps component framework, portals, and AI Builder.
|
|
|
toddams/RazorLight
Template engine based on Microsoft's Razor parsing engine for .NET Core
|
|
|
tmoonlight/NSmartProxy
NSmartProxy是一款开源的内网穿透工具。采用.NET CORE的全异步模式打造。(NSmartProxy is an open source reverse proxy tool that creates a secure tunnel from a public endpoint to a locally service.)
|
|
|
MarimerLLC/csla
A home for your business logic in any .NET application.
|
|
|
dotnetcore/HttpReports
HttpReports is an APM (application performance monitor) system for .Net Core.
|
|
|
dotnet/MobileBlazorBindings
Experimental Mobile Blazor Bindings - Build native and hybrid mobile apps with Blazor
|
|
|
SteeltoeOSS/Steeltoe
.NET Components for Externalized Configuration, Database Connectors, Service Discovery, Logging and Distributed Tracing, Application Management, Security, and more.
|
|
|
MUnique/OpenMU
This project aims to create an easy to use, extendable and customizable server for a MMORPG called "MU Online".
|
| Version | Downloads | Last Updated |
|---|---|---|
| 11.0.0-preview.5.26302.115 | 6,526 | 6/9/2026 |
| 11.0.0-preview.4.26230.115 | 30,700 | 5/12/2026 |
| 11.0.0-preview.3.26207.106 | 29,813 | 4/14/2026 |
| 11.0.0-preview.2.26159.112 | 41,723 | 3/10/2026 |
| 11.0.0-preview.1.26104.118 | 31,677 | 2/10/2026 |
| 10.0.9 | 1,111,722 | 6/9/2026 |
| 10.0.8 | 6,848,767 | 5/12/2026 |
| 10.0.7 | 10,114,128 | 4/21/2026 |
| 10.0.6 | 3,127,099 | 4/14/2026 |
| 10.0.5 | 12,699,647 | 3/12/2026 |
| 10.0.4 | 1,304,255 | 3/10/2026 |
| 10.0.3 | 12,304,125 | 2/10/2026 |
| 10.0.2 | 13,836,412 | 1/13/2026 |
| 10.0.1 | 12,493,875 | 12/9/2025 |
| 9.0.17 | 70,362 | 6/9/2026 |
| 9.0.16 | 390,094 | 5/12/2026 |
| 9.0.15 | 996,604 | 4/14/2026 |
| 9.0.14 | 1,202,530 | 3/10/2026 |
| 9.0.13 | 1,163,292 | 2/10/2026 |
| 9.0.12 | 1,742,588 | 1/13/2026 |