dotnet-tool-exec 3.1.1

dotnet tool install --global dotnet-tool-exec --version 3.1.1                
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest # if you are setting up this repo
dotnet tool install --local dotnet-tool-exec --version 3.1.1                
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=dotnet-tool-exec&version=3.1.1                
nuke :add-package dotnet-tool-exec --version 3.1.1                

dotnet-exec

Build Status

A tool that allows you easily execute your custom commands.

Any custom command can be .NET CLI command, it just has to be in defined in root path as .dotnetexec.json file.

This is a community project, free and open source. Everyone is invited to contribute, fork, share and use the code.

Quick Start

install the tool by using to following command:

dotnet tool install --global dotnet-tool-exec

Create .dotnetexec.json file in root of your solution and define your comamnds:

{
    "name":"MySolution",
    "env":{
        "NAME":"MY_NAME"
    },
	"entrypoint":"/bin/bash",
	"commands":{
		"test":[ 
            "dotnet build",
            "dotnet test -p $NAME",
        ]
	}
}

Entrypoint is an optional parameter, automaticly will be detected based on operation system

Commands will concat by '&&' and executed in one single line

To execute a command use dotnet execute [command]. ex:

dotnet execute test

How to contribute

Just fork the project, make your changes send us a PR. You can compile the project with Visual Studio 2017 and/or the .NET Core 2.0 CLI!

In the root folder, just run:

dotnet restore dotnet build dotnet test

Product Compatible and additional computed target framework versions.
.NET net5.0 is compatible.  net5.0-windows was computed.  net6.0 was computed.  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.

This package has no dependencies.

Version Downloads Last updated
3.1.1 9,876 7/23/2021
3.1.0 347 7/23/2021
3.0.0 348 7/22/2021
2.0.5 4,230 6/28/2020
2.0.4 438 6/28/2020
2.0.3 555 5/23/2020
2.0.2 690 12/24/2019
2.0.1 510 12/23/2019
1.2.0 481 4/1/2020
1.0.3 486 12/23/2019
1.0.2 491 12/20/2019
1.0.1 488 12/19/2019
1.0.0 523 12/19/2019