Skip to content
opustecnica edited this page Oct 20, 2021 · 6 revisions

Links/REFs


Using dotnet script from Windows Terminal

This tool can run C# code in the terminal, and is useful for experimenting with C# syntax and libraries.

dotnet tool install -g dotnet-script

Once installation is complete, we can run it by executing the dotnet-script command. We can then type C# code and see the result in the terminal:

Use Ctrl+C to exit.


Add a C# menu option to Windows Terminal

{
    "guid": "{eae0e5d6-8091-4a5e-af17-12b57cff0337}",
    "name": "C#",
    "commandline": "dotnet-script",
    "closeOnExit": "always"
}

Clone this wiki locally