Skip to content

Latest commit

 

History

History
37 lines (28 loc) · 1.17 KB

README.md

File metadata and controls

37 lines (28 loc) · 1.17 KB

ScriptTools

ScriptTools is a collection of C# scripts that use dotnet script engine to run.

All scripts are distributed under the MIT license.

Using dotnet script

Install dotnet script

  1. Install .NET 7
  2. Run from command line (to install dotnet script):
    dotnet tool install -g dotnet-script
    
  3. Run from command line (to execute scripts directly from a command line as if they were executables):
    dotnet script register
    

Create and run script

  1. Create an empty HelloWorld.csx text file.
  2. Add this line:
    Console.WriteLine("Hello world");
    
  3. Run from command line:
    HelloWorld.csx
    

Scripts