{"id":29707541,"url":"https://github.com/pathogendavid/cscmd","last_synced_at":"2025-10-05T17:57:56.833Z","repository":{"id":15972737,"uuid":"18715550","full_name":"PathogenDavid/cscmd","owner":"PathogenDavid","description":"Small tool for running small single-file C# programs on the command line as if they were scripts.","archived":true,"fork":false,"pushed_at":"2018-03-29T16:11:57.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-23T17:20:03.883Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/PathogenDavid.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":null,"security":null,"support":null}},"created_at":"2014-04-12T21:50:38.000Z","updated_at":"2025-06-15T23:16:05.000Z","dependencies_parsed_at":"2022-07-23T00:32:10.844Z","dependency_job_id":null,"html_url":"https://github.com/PathogenDavid/cscmd","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/PathogenDavid/cscmd","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PathogenDavid%2Fcscmd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PathogenDavid%2Fcscmd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PathogenDavid%2Fcscmd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PathogenDavid%2Fcscmd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PathogenDavid","download_url":"https://codeload.github.com/PathogenDavid/cscmd/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PathogenDavid%2Fcscmd/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278494624,"owners_count":25996414,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-05T02:00:06.059Z","response_time":54,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2025-07-23T17:11:16.338Z","updated_at":"2025-10-05T17:57:56.814Z","avatar_url":"https://github.com/PathogenDavid.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"`cscmd`: The C# Command Line Execution Utility\n=====\n\n**Please note**: This project is archived. With modern .NET, you're much better off using `csi` as it is much more flexible and offers REPL capabilities. You can read more about `csi` in [this article](https://msdn.microsoft.com/en-us/magazine/mt614271.aspx) or [on the Roslyn wiki](https://github.com/dotnet/roslyn/wiki/Interactive-Window).\n\n----------------\n\n`cscmd` is a small tool for running small single-file C# programs on the command line as if they were scripts. It is useful for making one-off utility programs where you don't want to bother creating a whole Visual Studio solution and be throwing around built executable files.\n\nI made this for my own use, but I hope you can find it useful too. It has been tested on Windows 8.1 as well as on Linux using Mono.\n\n## Example Usage\nUsing the tool is very simple. Scripts are written exactly like any other simple C# command line program. There is a sample script, `test.cs` included that simply prints the contents of the first command line argument you pass to it. This file will be copied to the output directory upon build.\n\nExecuting `cscmd` with the example test script:\n\n    cscmd test.cs \"Hello, World :D\"\n\nWill print \"Hello, World :D\" to the command line.\n\n## TODO\nSince `cscmd` was something I quickly made to solve the problem I had at the time, it is not the most featureful program ever. Some things I would like to add to the program eventually are:\n\n* Showing a \"Just in Time Debugging\" dialog when a script fails during execution. (And allowing Visual Studio to debug the script directly.)\n* Allowing more references to be available to scripts (right now it just allows the ones Visual Studio 2012's Command Line Application template has by default.)\n* Investigating [shebang](http://en.wikipedia.org/wiki/Shebang_\\(Unix\\)) support on Linux.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpathogendavid%2Fcscmd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpathogendavid%2Fcscmd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpathogendavid%2Fcscmd/lists"}