Meziantou.Framework.FullPath
1.1.15
Prefix Reserved
dotnet add package Meziantou.Framework.FullPath --version 1.1.15
NuGet\Install-Package Meziantou.Framework.FullPath -Version 1.1.15
<PackageReference Include="Meziantou.Framework.FullPath" Version="1.1.15" />
<PackageVersion Include="Meziantou.Framework.FullPath" Version="1.1.15" />
<PackageReference Include="Meziantou.Framework.FullPath" />
paket add Meziantou.Framework.FullPath --version 1.1.15
#r "nuget: Meziantou.Framework.FullPath, 1.1.15"
#:package Meziantou.Framework.FullPath@1.1.15
#addin nuget:?package=Meziantou.Framework.FullPath&version=1.1.15
#tool nuget:?package=Meziantou.Framework.FullPath&version=1.1.15
Meziantou.Framework.FullPath
FullPath ensures you always deal with full path in your application and provides many common methods to manipulate paths.
// Create FullPath
FullPath rootPath = FullPath.FromPath("demo"); // It automatically calls Path.GetFullPath to resolve the path
FullPath filePath = FullPath.Combine(rootPath, "temp", "meziantou.txt"); // Use Path.Combine to join paths (you can combine as many path as you needed)
FullPath temp = FullPath.GetTempPath(); // equivalent of Path.GetTempPath()
FullPath cwd = FullPath.GetCurrentDirectory(); // equivalent of Environment.CurrentDirectory
// Combine path: you can use the / operator to join path
FullPath filePath1 = rootPath / "temp" / "meziantou.txt";
// Compare path
// Comparisons are case-insensitive on Windows and case-sensitive on other operating systems by default
_ = filePath == rootPath;
_ = filePath.Equals(rootPath, ignoreCase: false);
// Get parent directory
FullPath parent = filePath.Parent;
// Get file/directory name - extension
var name = filePath.Name;
var ext = filePath.Extension;
// Make relative path
string relativePath = filePath.MakeRelativeTo(rootPath); // temp\meziantou.txt
// Check if a path is under another path
bool isChildOf = filePath.IsChildOf(rootPath);
// FullPath is implicitly converted to string, so it works well with File/Directory methods
System.IO.File.WriteAllText(filePath, content);
Additional resources
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. 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 Framework | net472 is compatible. net48 was computed. net481 was computed. |
-
.NETFramework 4.7.2
- System.Text.Json (>= 10.0.2)
-
net10.0
- Mono.Unix (>= 7.1.0-final.1.21458.1)
-
net8.0
- Mono.Unix (>= 7.1.0-final.1.21458.1)
-
net9.0
- Mono.Unix (>= 7.1.0-final.1.21458.1)
NuGet packages (3)
Showing the top 3 NuGet packages that depend on Meziantou.Framework.FullPath:
| Package | Downloads |
|---|---|
|
Meziantou.Framework.TemporaryDirectory
TemporaryDirectory allows to create a disposable directory to store temporary files |
|
|
Meziantou.Framework.NuGetPackageValidation
Provide rules to validate a NuGet package follows best practices |
|
|
ANcpLua.Roslyn.Utilities.Testing
Fluent testing framework for Roslyn analyzers, code fixes, and incremental generators with caching validation, forbidden type detection, and comprehensive assertion support. |
GitHub repositories (2)
Showing the top 2 popular GitHub repositories that depend on Meziantou.Framework.FullPath:
| Repository | Stars |
|---|---|
|
meziantou/Meziantou.Analyzer
A Roslyn analyzer to enforce some good practices in C#.
|
|
|
workleap/wl-dotnet-codingstandards
Workleap recommended coding standards for .NET.
|
| Version | Downloads | Last Updated |
|---|---|---|
| 1.1.15 | 859 | 2/9/2026 |
| 1.1.14 | 1,839 | 1/25/2026 |
| 1.1.13 | 1,272 | 1/18/2026 |
| 1.1.12 | 7,335 | 12/14/2025 |
| 1.1.11 | 1,750 | 12/7/2025 |
| 1.1.10 | 4,562 | 11/30/2025 |
| 1.1.9 | 880 | 11/23/2025 |
| 1.1.8 | 3,879 | 11/16/2025 |
| 1.1.7 | 1,332 | 11/9/2025 |
| 1.1.6 | 2,563 | 11/2/2025 |
| 1.1.5 | 2,237 | 10/26/2025 |
| 1.1.4 | 1,740 | 10/19/2025 |
| 1.1.3 | 21,708 | 9/16/2025 |
| 1.1.2 | 1,621 | 9/3/2025 |
| 1.1.1 | 9,899 | 8/17/2025 |
| 1.1.0 | 749 | 8/11/2025 |
| 1.0.24 | 2,344 | 8/10/2025 |
| 1.0.23 | 1,076 | 8/3/2025 |
| 1.0.22 | 2,670 | 7/13/2025 |
| 1.0.21 | 2,169 | 6/15/2025 |