Coder Social home page Coder Social logo

nbrowse's Introduction

NBrowse: .NET assembly query utility

Build Status license

Overview

NBrowse is a command-line utility to browse and execute search queries in .NET compiled assemblies (both .NET Framework and .NET Standard). It exposes loaded assemblies through a standard set of traversable entities (e.g. "assembly", "project", "type", "method" and so on) and allows you to run C# statements to query anything you want to retrieve from them.

You can think of it as a stripped down NDepend equivalent with no graphical interface.

This example will search in assembly NBrowse.dll for every type that implements interface IPrinter and print them to standard output:

$ dotnet NBrowse.CLI.dll -c '
    /* Take all loaded assemblies */
    p => p.Assemblies
    /* Select declared types from each of them */
    .SelectMany(a => a.Types)
    /* Filter on types having an interface named "IPrinter" */
    .Where(t => t.Interfaces.Any(i => i.Name == "IPrinter"))' NBrowse.dll

Usage

Download latest release from GitHub or checkout code and build using your preferred .NET Core or .NET Framework SDK.

Once you have a NBrowse.CLI executable file, run it with -h command line argument to display help.

$ dotnet NBrowse.CLI -h

Licence

This project is open-source, released under MIT licence. See LICENSE.md file for details.

Author

Rémi Caput (github.com+nbrowse [at] mirari [dot] fr)

nbrowse's People

Contributors

aerion avatar r3c avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.