GithubHelp home page GithubHelp logo

piraces / dotnex Goto Github PK

View Code? Open in Web Editor NEW
10.0 2.0 0.0 514 KB

A simple .NET tool to execute other dotnet tools without installing them globally or in a project

Home Page: https://piraces.github.io/dotnex/

License: MIT License

C# 100.00%
dotnet cli tool global cross-platform dotnet-cli dotnet-tools dotnet-tool

dotnex's Introduction

dotnex

.NET Tool Release .NET Docs publish .NET CI CodeQL Quality Gate Status

Nuget

A simple .NET tool to execute other dotnet tools without installing them globally or in a project (a similar approach to npx from npm).

View in Nuget.org

About

This simple tool provides the minimum necessary to run dotnet tools without the need of installing them globally or in a project, since this is not yet supported in dotnet cli.

Features:

  • Cache. This tool provides caching of used tools in a temporary directory (for better performance).

  • Version and framework selection. You can specify whatever version you want and the target framework to use in every run.

  • SourceLink for debugging. The binaries can be debbuged with Source Link. Example (with Developer Command Prompt for VS): devenv /debugexe c:\Users\rich\.dotnet\tools\dotnex.exe

  • Symbols package. A symbols package is published too in the publish process in order to ease the debugging of the NuGet package.

Usage

dotnex [options] <TOOL> [<TOOL-ARGS>...]

Where the arguments and options are the following:

Arguments:
  <TOOL>       The NuGet Package Id of the tool to execute []
  <TOOL-ARGS>  Arguments to pass to the tool to execute

Options:
  -v, --use-version <use-version>  Version of the tool to use
  -f, --framework <framework>      Target framework for the tool
  -r, --remove-cache               Flag to remove the local cache before running the tool (can be run without tool)
  --version                        Show version information
  -?, -h, --help                   Show help and usage information

This same output can be obtained running the tool with the help option:

dotnex -h

Example with the simple dotnetsay tool:

dotnex dotnetsay Hello World!!

Installation

Install the dotnet cli (included in the .NET SDK) and then run the following command:

dotnet tool install -g dotnex

SDK version

dotnex is published for all current supported SDKs from Microsoft:

  • .NET Core 3.1.x
  • .NET 5.0.x
  • .NET 6.0.x

The main idea is to maintain dotnex up-to-date with all current supported SDKs from Microsoft.

Contributions

Feel free to open an issue or a PR if you want to without any problem :)

License

This project is licensed under the MIT License.

See the LICENSE file in the root of this repository.

dotnex's People

Contributors

dependabot[bot] avatar piraces avatar rpiraces-plain avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

dotnex's Issues

Name similar to npx - dotnetx / dotnex

This is a really nice tool. Thanks!

I like how similar it is to npx.

The name however is really hard to remember! ๐Ÿ˜„ It would be nice to have an alias like dotnetx or dotnex.

It could be added as an alias (not to replace dotnet-tool-run) so that it's backwards compatible.

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.