Skip to content
This repository has been archived by the owner on Mar 1, 2021. It is now read-only.

adamralph/dude

Repository files navigation

Icon

Dude

Github All Releases Build status

Have you ever wanted to get your hands on Microsoft's C# REPL Command-Line Interface (csi.exe) without having to install Visual Studio? Dude, look no further!

Dude is what you're looking for, and all in a single exe!

Getting started

  1. The Dude requires .NET Framework 4.6 or later.
  2. Download dude.exe.
  3. (Optional) add the folder containing dude.exe to your PATH.

Dude is functionally identical to csi.exe. E.g. dude.exe starts a REPL session. dude.exe hello.csx runs a C# script. dude.exe -? shows help.

How it works

Dude, like csi.exe, is a tiny wrapper around various Microsoft.CodeAnalysis libraries. The only differences (apart from the name) are:

  1. The invocation of the Microsoft.CodeAnalysis members that do all the the heavy lifting is via reflection since most of them are internal. (Note that this should have negligible performance impact since the reflective calls only represent a small doorway into the code that does all the work.)
  2. All the required assemblies are merged into a single exe using ILRepack.
  3. The default response file is created alongside the exe the first time it is run.

The Dude by Joan Andujar from the Noun Project.