MAP.AspNetCore.StaticFiles 6.1.0

There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package MAP.AspNetCore.StaticFiles --version 6.1.0                
NuGet\Install-Package MAP.AspNetCore.StaticFiles -Version 6.1.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="MAP.AspNetCore.StaticFiles" Version="6.1.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add MAP.AspNetCore.StaticFiles --version 6.1.0                
#r "nuget: MAP.AspNetCore.StaticFiles, 6.1.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.
// Install MAP.AspNetCore.StaticFiles as a Cake Addin
#addin nuget:?package=MAP.AspNetCore.StaticFiles&version=6.1.0

// Install MAP.AspNetCore.StaticFiles as a Cake Tool
#tool nuget:?package=MAP.AspNetCore.StaticFiles&version=6.1.0                

With this package you can work with static file name

  • Create uniqe name for file
  • Take file ContentType
  • Compare two url for asp.net core
  • ...
More features will be released soon

FileContentType class

This class work with cntent type

fileContentType(string? name)

Get content type from file name

TryContentType(string name)

Check file content type is exist or not

TryContentType(string name, out string contentType)

Check file content type is exist or not

RegularFileName class

This class work with file name

SetNameWithOutExtension(string name)

This method creates a unique name for your file and short your file name to dont exception url This method replace "_" and "." from name to "-" This method set file name with out Extension

SetNameWithExtension(string name)

This method creates a unique name for your file and short your file name to dont exception url This method replace "_" and "." from name to "-"

SetNameWithExtension(string name, string extention)

This method creates a unique name for your file and short your file name to dont exception url This method replace "_" and "." from name to "-"

RemoveGuidFromNameWithOutExtension(string name)

This method remove uniqe code from file name and remove extension

RemoveGuidFromNameWithExtension(string name)

This method remove uniqe code from file name

toEnDigits(string input)

This method change Persian/Arabic number to English number

fileNameWithExtensionFromUrl(string url)

Get file name from Url

CheckUrl(string path1, string path2)

Check Url in asp.net Core Actions and Files

FileExtensions class

GetFileExtension(string fileName)

This method get file extension

Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

With this package you can work with static file