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
- Host: GitHub
- URL: https://github.com/tomashubelbauer/dotnet-scripts
- Owner: TomasHubelbauer
- Created: 2019-05-06T14:37:02.000Z (about 7 years ago)
- Default Branch: main
- Last Pushed: 2022-04-14T20:06:41.000Z (about 4 years ago)
- Last Synced: 2025-06-01T16:42:32.806Z (12 months ago)
- Topics: csx, dotnet, dotnet-core, dotnet-script, net
- Language: Markdown
- Homepage:
- Size: 1000 Bytes
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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