GitHub repo Questions at StackOverflow Ask a question at StackOverflow Community discussions License codecov Nuget .NET Docs Maintainability Rating

What it does

This project helps you to see that a file has the correct extension

What it recognize

There are 344 extensions of files ( 16 tested) . See

Please help by making a PR by adding files to

How to use it

Demo online:

NuGet Package: Nuget

Simple use

.NET / C#

Add a reference to Nuget ,

Console.WriteLine("Hello World!");
var r = new RecognizerPlugin.RecognizePlugins();
foreach (var item in r.AllExtensions())
//find the sln
var dir =new DirectoryInfo( Directory.GetCurrentDirectory());
while(dir != null){
    string file = Directory.GetFiles(dir.FullName, "*.sln").FirstOrDefault();
    if(file == null)
        dir = dir.Parent;
    var fileExtension = Path.GetExtension(file);
    var canRecognize = r.CanRecognizeExtension(fileExtension);
    Console.WriteLine($"file {file} can be  recognized {canRecognize}");
    //found sln, now recognize
    var byts = await File.ReadAllBytesAsync(file);
    var found = r.RecognizeTheFile(byts, fileExtension);
    Console.Write($"file {file} is recognized {found}");

Angular / TypeScript

For calling the service , please see

For a component, please see

Contributors ✨

Thanks goes to these wonderful people (emoji key):

Andrei Ignat

⚠️ 💻

This project follows the all-contributors specification. Contributions of any kind welcome!


The code in this project is licensed under MIT license.