{"id":16431507,"url":"https://github.com/dcastro/csi-init","last_synced_at":"2026-05-10T23:58:13.395Z","repository":{"id":145860002,"uuid":"74979838","full_name":"dcastro/csi-init","owner":"dcastro","description":"csi-init is a command line tool that allows you to launch Roslyn's C# REPL (csi) preloaded with all the assemblies found in one or more directories","archived":false,"fork":false,"pushed_at":"2017-08-24T20:00:55.000Z","size":23,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-25T09:47:34.938Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Haskell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dcastro.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-11-28T14:17:30.000Z","updated_at":"2020-02-25T13:09:44.000Z","dependencies_parsed_at":null,"dependency_job_id":"ae964330-b16e-4955-ab57-3569219e605f","html_url":"https://github.com/dcastro/csi-init","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/dcastro/csi-init","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcastro%2Fcsi-init","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcastro%2Fcsi-init/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcastro%2Fcsi-init/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcastro%2Fcsi-init/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dcastro","download_url":"https://codeload.github.com/dcastro/csi-init/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcastro%2Fcsi-init/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32876029,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-10T13:40:02.631Z","status":"ssl_error","status_checked_at":"2026-05-10T13:40:02.145Z","response_time":54,"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":[],"created_at":"2024-10-11T08:30:33.858Z","updated_at":"2026-05-10T23:58:13.380Z","avatar_url":"https://github.com/dcastro.png","language":"Haskell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# csi-init\n\n`csi-init` is a command line tool that allows you to launch [Roslyn's C# REPL (`csi`)][0] preloaded with all the assemblies found in one or more directories.\n\n\u003e \\\u003ccockney accent\\\u003eWots my favourite crime show? ..... csi init!\\\u003c/cockney accent\\\u003e\n\u003e\n\u003e \\- Jeff McCrory\n\n## Download\n\nSee https://github.com/dcastro/csi-init/releases\n\n## Usage\n\n**Note:** make sure you have `csi` in your path. It comes bundled with Visual Studio 2015 and is typically located in `C:\\Program Files (x86)\\MSBuild\\14.0\\Bin\\`.\n\nYou can use `-d` to load the REPL with all the assemblies found in a given directory, or `-r` to search for assemblies recursively.\n\n```\ncsi-init -d c:\\MyProject\\bin\n```\n\nAll arguments specified after `--` will be passed directly to `csi`.\n\n```\ncsi-init -d c:\\MyProject\\bin -- /u:MyProject.SomeNamespace\n```\n\nA common use case is to download all your commonly used NuGet packages into a folder (using [nuget's command line tool][3]), and then load all these assemblies into a REPL:\n\n```\n$ mkdir c:\\CommonPackages\n$ cd c:\\CommonPackages\n$ nuget install Newtonsoft.Json\n$ nuget install LanguageExt.Core\n$ nuget install xunit\n$ csi-init -r c:\\CommonPackages\n```\n\n## Building\n\nUsing [stack][1]:\n\n```\n$ stack build\n$ stack exec csi-init\n```\n\nOr:\n\n```\n$ stack install\n$ csi-init\n```\n\n## Available Options\n\n`csi-init`'s options:\n```\n$ csi-init -h\nInvokes the `csi` C# REPL preloaded with a bunch of assemblies.\n\nUsage: csi-init [-d|--dir ASSEMBLYDIR] [-r|--rdir ASSEMBLYDIR]\n                [-e|--exclude PATTERN] [ARGUMENTS...] [--debug]\n  All arguments specified after `--` will be passed directly to `csi`. E.g.:\n  `csi-init -- /u:Newtonsoft.Json`\n\nAvailable options:\n  -h,--help                Show this help text\n  -d,--dir ASSEMBLYDIR     Import all assemblies from the specified folder\n  -r,--rdir ASSEMBLYDIR    Import all assemblies from the specified folder and\n                           it's subfolders (recursive search)\n  -e,--exclude PATTERN     Exclude assemblies whose path match a pattern (e.g.\n                           **filename.dll, C:\\\\tmp\\\\file*.dll, **\\\\x86\\\\**) NB:\n                           patterns are matched against an assembly's absolute,\n                           canonical path. I.e., on Windows, backslashes are\n                           used and the drive letter is uppercase. Backslashes\n                           must be escaped with \"\\\\\". For more information on\n                           patterns, see https://goo.gl/3TqYeF\n  --debug                  Print the arguments being passed to `csi`\n```\n\n`csi`'s options (at the time of writing):\n```\n$ csi -help\nMicrosoft (R) Visual C# Interactive Compiler version 1.3.1.60616\nCopyright (C) Microsoft Corporation. All rights reserved.\n\nUsage: csi [option] ... [script-file.csx] [script-argument] ...\n\nExecutes script-file.csx if specified, otherwise launches an interactive REPL (Read Eval Print Loop).\n\nOptions:\n  /help                          Display this usage message (alternative form: /?)\n  /i                             Drop to REPL after executing the specified script.\n  /r:\u003cfile\u003e                      Reference metadata from the specified assembly file (alternative form: /reference)\n  /r:\u003cfile list\u003e                 Reference metadata from the specified assembly files (alternative form: /reference)\n  /lib:\u003cpath list\u003e               List of directories where to look for libraries specified by #r directive.\n                                 (alternative forms: /libPath /libPaths)\n  /u:\u003cnamespace\u003e                 Define global namespace using (alternative forms: /using, /usings, /import, /imports)\n  @\u003cfile\u003e                        Read response file for more options\n  --                             Indicates that the remaining arguments should not be treated as options.\n```\n\n\n\n [0]: https://github.com/dotnet/roslyn/wiki/Interactive-Window#repl\n [1]: https://haskell-lang.org/get-started\n [3]: https://dist.nuget.org/index.html\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdcastro%2Fcsi-init","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdcastro%2Fcsi-init","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdcastro%2Fcsi-init/lists"}