Meziantou.Framework.FullPath
1.1.14
Prefix Reserved
dotnet add package Meziantou.Framework.FullPath --version 1.1.14
NuGet\Install-Package Meziantou.Framework.FullPath -Version 1.1.14
<PackageReference Include="Meziantou.Framework.FullPath" Version="1.1.14" />
<PackageVersion Include="Meziantou.Framework.FullPath" Version="1.1.14" />
<PackageReference Include="Meziantou.Framework.FullPath" />
paket add Meziantou.Framework.FullPath --version 1.1.14
#r "nuget: Meziantou.Framework.FullPath, 1.1.14"
#:package Meziantou.Framework.FullPath@1.1.14
#addin nuget:?package=Meziantou.Framework.FullPath&version=1.1.14
#tool nuget:?package=Meziantou.Framework.FullPath&version=1.1.14
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.14 | 445 | 1/25/2026 |
| 1.1.13 | 1,156 | 1/18/2026 |
| 1.1.12 | 7,280 | 12/14/2025 |
| 1.1.11 | 1,737 | 12/7/2025 |
| 1.1.10 | 3,906 | 11/30/2025 |
| 1.1.9 | 871 | 11/23/2025 |
| 1.1.8 | 3,026 | 11/16/2025 |
| 1.1.7 | 1,324 | 11/9/2025 |
| 1.1.6 | 2,548 | 11/2/2025 |
| 1.1.5 | 2,234 | 10/26/2025 |
| 1.1.4 | 1,739 | 10/19/2025 |
| 1.1.3 | 18,774 | 9/16/2025 |
| 1.1.2 | 1,614 | 9/3/2025 |
| 1.1.1 | 9,897 | 8/17/2025 |
| 1.1.0 | 747 | 8/11/2025 |
| 1.0.24 | 2,342 | 8/10/2025 |
| 1.0.23 | 1,037 | 8/3/2025 |
| 1.0.22 | 2,667 | 7/13/2025 |
| 1.0.21 | 2,159 | 6/15/2025 |
| 1.0.20 | 4,140 | 5/26/2025 |
| 1.0.19 | 2,105 | 5/18/2025 |
| 1.0.18 | 8,893 | 4/13/2025 |
| 1.0.17 | 4,816 | 3/16/2025 |
| 1.0.16 | 4,657 | 3/1/2025 |
| 1.0.15 | 11,181 | 12/14/2024 |
| 1.0.14 | 13,634 | 11/17/2024 |
| 1.0.13 | 20,041 | 5/21/2024 |
| 1.0.12 | 9,303 | 11/15/2023 |
| 1.0.11 | 14,817 | 9/7/2022 |
| 1.0.10 | 741 | 7/23/2022 |
| 1.0.9 | 879 | 5/27/2022 |
| 1.0.8 | 802 | 3/19/2022 |
| 1.0.7 | 5,530 | 7/14/2021 |
| 1.0.6 | 860 | 4/22/2021 |
| 1.0.5 | 757 | 3/3/2021 |
| 1.0.4 | 698 | 2/28/2021 |
| 1.0.3 | 562 | 1/25/2021 |
| 1.0.2 | 2,162 | 12/4/2020 |
| 1.0.1 | 30,484 | 9/25/2020 |
| 1.0.0 | 954 | 9/24/2020 |