{"id":37055892,"url":"https://github.com/adamralph/simple-targets-csx","last_synced_at":"2026-01-14T06:18:36.085Z","repository":{"id":66265139,"uuid":"69194181","full_name":"adamralph/simple-targets-csx","owner":"adamralph","description":"⊙ A minimalist target runner for C# scripts.","archived":true,"fork":false,"pushed_at":"2021-02-28T18:36:37.000Z","size":146,"stargazers_count":18,"open_issues_count":5,"forks_count":1,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-08-01T04:55:10.287Z","etag":null,"topics":["build","csharp","csi","csx","csx-script","dotnet","task-runner"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/adamralph.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-09-25T22:25:41.000Z","updated_at":"2024-09-09T11:32:31.000Z","dependencies_parsed_at":null,"dependency_job_id":"66b1bdea-f5ba-45f7-a052-415634fffa98","html_url":"https://github.com/adamralph/simple-targets-csx","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/adamralph/simple-targets-csx","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adamralph%2Fsimple-targets-csx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adamralph%2Fsimple-targets-csx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adamralph%2Fsimple-targets-csx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adamralph%2Fsimple-targets-csx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/adamralph","download_url":"https://codeload.github.com/adamralph/simple-targets-csx/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adamralph%2Fsimple-targets-csx/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28412195,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T05:26:33.345Z","status":"ssl_error","status_checked_at":"2026-01-14T05:21:57.251Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["build","csharp","csi","csx","csx-script","dotnet","task-runner"],"created_at":"2026-01-14T06:18:35.356Z","updated_at":"2026-01-14T06:18:36.076Z","avatar_url":"https://github.com/adamralph.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"**This project has been replaced by [Bullseye](https://github.com/adamralph/bullseye). It is recommended to migrate your targets from simple-targets-csx to Bullseye.**\r\n\r\n![Icon](/assets/simple-targets-csx.png)\r\n\r\n# simple-targets-csx\r\n\r\n[![NuGet version](https://img.shields.io/nuget/v/simple-targets-csx.svg?style=flat)](https://www.nuget.org/packages/simple-targets-csx) [![Build status](https://ci.appveyor.com/api/projects/status/cmkx89k0sj0h3ebw/branch/master?svg=true)](https://ci.appveyor.com/project/adamralph/simple-targets-csharp/branch/master)\r\n\r\nA 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](https://msdn.microsoft.com/en-us/magazine/mt614271.aspx)).\r\n\r\nIn no way restricted to writing targets related to .NET projects.\r\n\r\n### Quickstart\r\n\r\n* Install (or download and unzip) the [NuGet package](https://www.nuget.org/packages/simple-targets-csx).\r\n* Create a C# script named `build.csx` and add the following code:\r\n```C#\r\n#load \"packages/simple-targets-csx.6.0.0/contentFiles/csx/any/simple-targets.csx\" // change the path as required\r\n\r\nusing static SimpleTargets;\r\n\r\nvar targets = new TargetDictionary();\r\n\r\ntargets.Add(\"default\", () =\u003e Console.WriteLine(\"Hello, world!\"));\r\n\r\nRun(Args, targets);\r\n```\r\n* Run `csi.exe .\\build.csx` (see [\"Runners\"](#runners)).\r\n\r\n### Usage\r\n\r\n| Action                        | Command                                                                             |\r\n|-------------------------------|-------------------------------------------------------------------------------------|\r\n| Run a specific target         | `{runner} .\\build.csx targetname`                                                   |\r\n| Run multiple targets          | `{runner} .\\build.csx target1name target2name`                                      |\r\n| List targets                  | `{runner} .\\build.csx -T`                                                           |\r\n| List targets and dependencies | `{runner} .\\build.csx -D`                                                           |\r\n| Dry run                       | Append `-n`, e.g. `{runner} .\\build.csx -n` or `{runner} .\\build.csx targetname -n` |\r\n| Skip running dependencies     | Append `-s`, e.g. `{runner} .\\build.csx -s` or `{runner} .\\build.csx targetname -s` |\r\n| Show full usage details       | `{runner} .\\build.csx -?`                                                           |\r\n\r\n### Runners\r\n\r\n* [csi.exe](https://msdn.microsoft.com/en-us/magazine/mt614271.aspx) - 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.\r\n* [Dude](https://github.com/adamralph/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).\r\n\r\nOther C# script runners such as [dotnet-script](https://github.com/filipw/dotnet-script) should also work.\r\n\r\n### Examples\r\n\r\nxBehave.net uses a [bootstrap command](https://github.com/xbehave/xbehave.net/blob/dev/build.cmd) to\r\n\r\n* Download and cache `NuGet.exe`\r\n* Restore NuGet packages (including simple-targets-csx)\r\n* Execute its [build script](https://github.com/xbehave/xbehave.net/blob/dev/build.csx) using csi.exe\r\n\r\n---\r\n\r\n\u003csub\u003e[Target](https://thenounproject.com/term/target/345443) by [Franck Juncker](https://thenounproject.com/franckjuncker/) from [the Noun Project](https://thenounproject.com/).\u003c/sub\u003e\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadamralph%2Fsimple-targets-csx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadamralph%2Fsimple-targets-csx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadamralph%2Fsimple-targets-csx/lists"}