Codeuctivity.SanitizeFilename
0.0.17
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package Codeuctivity.SanitizeFilename --version 0.0.17
NuGet\Install-Package Codeuctivity.SanitizeFilename -Version 0.0.17
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="Codeuctivity.SanitizeFilename" Version="0.0.17" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Codeuctivity.SanitizeFilename --version 0.0.17
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Codeuctivity.SanitizeFilename, 0.0.17"
#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.
// Install Codeuctivity.SanitizeFilename as a Cake Addin #addin nuget:?package=Codeuctivity.SanitizeFilename&version=0.0.17 // Install Codeuctivity.SanitizeFilename as a Cake Tool #tool nuget:?package=Codeuctivity.SanitizeFilename&version=0.0.17
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
SanitizeFilename
Sanitizes filenames
Implements rules documented by Microsoft. Runs on any .net8 target platform.
Example
using Codeuctivity;
string unsafeString = "file*Name";
string safeFileName = unsafeString.SanitizeFilename();
Console.WriteLine($"Unsafe: {unsafeString}");
//Unsafe: file*Name
Console.WriteLine($"Sanitized: {safeFileName}");
//Sanitized: file_Name
string safeFileNameOptionalReplacementChar = unsafeString.SanitizeFilename(' ');
Console.WriteLine($"SafeFileNameOptionalReplacementChar: {safeFileNameOptionalReplacementChar}");
//SafeFileNameOptionalReplacementChar: file Name
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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net8.0
- No dependencies.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
2.0.126 | 1 | 9/30/2024 |
2.0.123 | 1 | 9/23/2024 |
2.0.120 | 1 | 9/17/2024 |
2.0.110 | 1 | 9/15/2024 |
2.0.109 | 1 | 9/14/2024 |
2.0.108 | 1 | 8/19/2024 |
2.0.104 | 1 | 5/19/2024 |
2.0.103 | 1 | 5/19/2024 |
2.0.102 | 1 | 5/19/2024 |
2.0.101 | 1 | 5/19/2024 |
2.0.96 | 1 | 3/29/2024 |
2.0.93 | 1 | 3/12/2024 |
2.0.91 | 1 | 3/11/2024 |
2.0.90 | 1 | 3/11/2024 |
2.0.89 | 1 | 3/11/2024 |
2.0.88 | 1 | 3/11/2024 |
2.0.87 | 1 | 3/11/2024 |
2.0.86 | 1 | 3/11/2024 |
2.0.85 | 1 | 3/11/2024 |
1.0.84 | 1 | 3/11/2024 |
1.0.63 | 1 | 3/3/2024 |
1.0.61 | 1 | 3/2/2024 |
1.0.58 | 1 | 3/2/2024 |
1.0.56 | 1 | 2/27/2024 |
1.0.55 | 1 | 2/27/2024 |
1.0.54 | 1 | 2/27/2024 |
1.0.53 | 1 | 2/27/2024 |
1.0.52 | 1 | 2/27/2024 |
1.0.47 | 1 | 2/24/2024 |
1.0.45 | 1 | 2/24/2024 |
1.0.44 | 1 | 2/24/2024 |
1.0.41 | 1 | 2/22/2024 |
1.0.40 | 1 | 2/17/2024 |
1.0.28 | 1 | 2/11/2024 |
1.0.27 | 1 | 2/11/2024 |
1.0.26 | 1 | 2/11/2024 |
1.0.25 | 1 | 2/11/2024 |
0.0.24 | 1 | 2/11/2024 |
0.0.23 | 1 | 2/11/2024 |
0.0.21 | 1 | 2/4/2024 |
0.0.20 | 1 | 2/4/2024 |
0.0.19 | 1 | 2/4/2024 |
0.0.18 | 1 | 2/4/2024 |
0.0.17 | 1 | 2/4/2024 |
Adjusted to fit to common ext4 utf-8 encoded file name restrictions