All Projects → adamralph → simple-targets-csx

adamralph / simple-targets-csx

Licence: MIT license
⊙ A minimalist target runner for C# scripts.

Programming Languages

C#
18002 projects
Batchfile
5799 projects

Projects that are alternatives of or similar to simple-targets-csx

Dotnet Script
Run C# scripts from the .NET CLI.
Stars: ✭ 1,881 (+10964.71%)
Mutual labels:  csx, csi
Godo
golang build tool in the spirt of rake, gulp
Stars: ✭ 523 (+2976.47%)
Mutual labels:  build, task-runner
Cargo Make
Rust task runner and build tool.
Stars: ✭ 895 (+5164.71%)
Mutual labels:  build, task-runner
autosetup
A better, faster autoconf replacement
Stars: ✭ 60 (+252.94%)
Mutual labels:  build
wsjcpp
Yet another... C++ Source Package Manager
Stars: ✭ 18 (+5.88%)
Mutual labels:  build
bask
😎 Bask in the convenience of a task runner for bash
Stars: ✭ 57 (+235.29%)
Mutual labels:  task-runner
sp-build-tasks
👷 SharePoint front-end projects automation and tasks tool-belt
Stars: ✭ 15 (-11.76%)
Mutual labels:  build
micromamba-docker
Rapid builds of small Conda-based containers using micromamba.
Stars: ✭ 97 (+470.59%)
Mutual labels:  build
lvm-localpv
CSI Driver for dynamic provisioning of Persistent Local Volumes for Kubernetes using LVM.
Stars: ✭ 86 (+405.88%)
Mutual labels:  csi
rote
Automate everything.
Stars: ✭ 66 (+288.24%)
Mutual labels:  task-runner
pexample
Building and packaging Python with Pants and PEX - an annotated example
Stars: ✭ 21 (+23.53%)
Mutual labels:  build
AzDo.VstsDashboard
Provide a simple way to view all Builds and Releases on a single page. The intend was to see what's currently happened into the CI/CD pipeline and provide quick feedback of what's going on.
Stars: ✭ 16 (-5.88%)
Mutual labels:  build
zig-header-gen
Automatically generate headers/bindings for other languages from Zig code
Stars: ✭ 40 (+135.29%)
Mutual labels:  build
build
Build system scripts based on GENie (https://github.com/bkaradzic/genie) project generator
Stars: ✭ 30 (+76.47%)
Mutual labels:  build
netlify-plugin-cache
⚡ Generic plugin for caching any files and/or folders between Netlify builds
Stars: ✭ 19 (+11.76%)
Mutual labels:  build
ngp
New Go Package
Stars: ✭ 22 (+29.41%)
Mutual labels:  build
nss-run
nss-run (not so simple run) is a very simplistic build tool.
Stars: ✭ 14 (-17.65%)
Mutual labels:  task-runner
arelo
a simple auto reload (live reload) utility
Stars: ✭ 54 (+217.65%)
Mutual labels:  task-runner
Carbon.Gulp
Carbon/Gulp is a delicious blend of tasks and build tools poured into Gulp to form a full-featured modern asset pipeline for Flow Framework and Neos CMS.
Stars: ✭ 15 (-11.76%)
Mutual labels:  build
eslint4b
ESLint which works in browsers.
Stars: ✭ 33 (+94.12%)
Mutual labels:  build

This project has been replaced by Bullseye. It is recommended to migrate your targets from simple-targets-csx to Bullseye.

Icon

simple-targets-csx

NuGet version Build status

A minimalist C# script library for writing targets for building, analysing, testing, packaging, deploying, etc. and running them using any runner which supports the "standard" C# script dialect (as defined by csi.exe).

In no way restricted to writing targets related to .NET projects.

Quickstart

  • Install (or download and unzip) the NuGet package.
  • Create a C# script named build.csx and add the following code:
#load "packages/simple-targets-csx.6.0.0/contentFiles/csx/any/simple-targets.csx" // change the path as required

using static SimpleTargets;

var targets = new TargetDictionary();

targets.Add("default", () => Console.WriteLine("Hello, world!"));

Run(Args, targets);

Usage

Action Command
Run a specific target {runner} .\build.csx targetname
Run multiple targets {runner} .\build.csx target1name target2name
List targets {runner} .\build.csx -T
List targets and dependencies {runner} .\build.csx -D
Dry run Append -n, e.g. {runner} .\build.csx -n or {runner} .\build.csx targetname -n
Skip running dependencies Append -s, e.g. {runner} .\build.csx -s or {runner} .\build.csx targetname -s
Show full usage details {runner} .\build.csx -?

Runners

  • csi.exe - Microsoft's "C# REPL Command-Line Interface". This is bundled with MSBuild 14 (and Visual Studio 2015) onwards so it's a good choice if you are using simple-targets-csx to write a build script for a .NET project, since the project will already likely have a dependency on MSBuild.
  • Dude - the portable C# script runner (csi.exe conveniently repackaged as a single self-contained exe). This is a good choice if you don't want or need to have a dependency on MSBuild. dude.exe can easily be downloaded and cached by a bootstrap command (similar to NuGet.exe in the example below).

Other C# script runners such as dotnet-script should also work.

Examples

xBehave.net uses a bootstrap command to

  • Download and cache NuGet.exe
  • Restore NuGet packages (including simple-targets-csx)
  • Execute its build script using csi.exe

Target by Franck Juncker from the Noun Project.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].