An open API service indexing awesome lists of open source software.

https://github.com/tomashubelbauer/dotnet-scripts

Info about the very useful dotnet script tool
https://github.com/tomashubelbauer/dotnet-scripts

csx dotnet dotnet-core dotnet-script net

Last synced: 21 days ago
JSON representation

Info about the very useful dotnet script tool

Awesome Lists containing this project

README

          

# `dotnet script` Tool

It is possible to run C# scripts by installing the `dotnet-script` tool:

`dotnet tool install -g dotnet-script`

To use it as a REPL, do `dotnet script`.

To use it to run a CSX file, do `dotnet script file.csx`.

To reference a NuGet package, add `#r "nuget: System.Drawing.Common, 4.5.1"`.

To load another script into the context of the current one, use `#load`.

To enable IntelliSense in VS Code, do `dotnet script init` to get the OmniSharp config and the debugger config.

## To-Do