Created
June 17, 2021 01:08
-
-
Save noseratio/ee2cf4c4e39cf2db4b409b1b8c75e029 to your computer and use it in GitHub Desktop.
C# REPL with Microsoft.Net.Compilers.Toolset
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://www.nuget.org/packages/Microsoft.Net.Compilers.Toolset | |
md cs-repl | cd | |
nuget install Microsoft.Net.Compilers.Toolset | |
# run a CS script, a useful alternative to PowerShell itself | |
echo 'Console.WriteLine("hello");' > script.csx | |
. (gci -recurse csi.exe).FullName script.csx | |
# run in REPL mode | |
. (gci -recurse csi.exe).FullName |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment