dotnet-script

Run C# scripts from the .NET CLI. (by dotnet-script)

Dotnet-script Alternatives

Similar projects and alternatives to dotnet-script

  1. .NET Runtime

    .NET is a cross-platform runtime for cloud, mobile, desktop, and IoT apps.

  2. ReSharper

    ReSharper is now available in VS Code and Cursor. ReSharper brings a professional toolset for C# developers backed by over 20 years of experience, enterprise-grade security, SOC 2 compliance, and the trust of companies worldwide.

    ReSharper logo
  3. ShellCheck

    ShellCheck, a static analysis tool for shell scripts

  4. PowerShell

    PowerShell for every system!

  5. csharplang

    The official repo for the design of the C# programming language

  6. winget-cli

    WinGet is the Windows Package Manager. This project includes a CLI (Command Line Interface), PowerShell modules, and a COM (Component Object Model) API (Application Programming Interface).

  7. sdk

    Core functionality needed to create .NET Core projects, that is shared between Visual Studio and CLI (by dotnet)

  8. core

    123 dotnet-script VS core

    .NET news, announcements, release notes, and more! (by dotnet)

  9. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  10. libuv

    Cross-platform asynchronous I/O

  11. interactive

    Discontinued .NET Interactive combines the power of .NET with many other languages to create notebooks, REPLs, and embedded coding experiences. Share code, explore data, write, and learn across your apps in ways you couldn't before.

  12. Squirrel

    An installation and update framework for Windows desktop apps

  13. AutoMapper

    A convention-based object-object mapper in .NET.

  14. CSharpRepl

    A command line C# REPL with syntax highlighting – explore the language, libraries and nuget packages interactively.

  15. RoslynPad

    A cross-platform C# editor based on Roslyn and AvalonEdit

  16. cs-script

    C# scripting platform

  17. coursier

    Pure Scala Artifact Fetching

  18. dhall

    Maintainable configuration files

  19. Visual Studio Community

    Discontinued GitHub Extension for Visual Studio

  20. ScriptCS

    Write C# apps with a text editor, nuget and the power of Roslyn!

  21. administrative-scripting-with-julia

    Guide for writing shell scripts in Julia

  22. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better dotnet-script alternative or higher similarity.

dotnet-script discussion

Log in or Post with

dotnet-script reviews and mentions

Posts with mentions or reviews of dotnet-script. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2025-05-28.
  • Dotnet Run App.cs
    16 projects | news.ycombinator.com | 28 May 2025
    > This feature is probably a big thing for .NET developer productivity. It's quite a shame, that it only came now.

    I am using https://github.com/dotnet-script/dotnet-script without any issues

  • Java in the Small
    9 projects | news.ycombinator.com | 18 Dec 2024
    It should be able to! F# has "gradual typing" and full type inference which means you often do not need to specify the types at all, and it also happens to be whitespace-sensitive language much like Python is. Both of these aspects should make it feel quite familiar while also giving you full advantages of static typing.

    One thing to note is I find `dotnet fsi {some script name}.fsx` taking more time to start than ideal - up to 800ms is just too much, normal .NET applications usually start in a fraction of this.

    I recently posted a submission for "FSharpPacker" that lets you compile F# scripts to standalone applications (either runtime-dependent, self-contained or fully native binaries, much like Go), it also has some comments on getting the best mileage out of it: https://news.ycombinator.com/item?id=42304835

    Probably the best feature that also comes with scripting (both C# and F#) is "inline" nuget references e.g. #r "nuget: FSharp.Control.TaskSeq" which will automatically pull the dependency from nuget without ever dealing with manually installing it or tinkering with build system in any other way.

    Some additional links:

    https://learn.microsoft.com/en-us/dotnet/fsharp/tools/fsharp...

    https://github.com/dotnet-script/dotnet-script (C# is also a quite productive language for scripting and small programs because of top-level statements, record types, pattern matching and many other functional features though perhaps not as strongly represented as in F#)

    https://github.com/waf/CSharpRepl

  • Jeffrey Snover and the Making of PowerShell
    9 projects | news.ycombinator.com | 4 Jul 2024
    Adding packages is `dotnet add {PackageName}`. That's it.

    Worrying about version compatibility for new projects has stopped being an issue long time ago. The package either targets NS2.0 or whatever latest LTS currently is, in which case you just add its reference, or it doesn't in which case you use something else.

    If it does, in 98% situations it just works. In the last 2% it has native dependencies which means either a) the package ships with binaries build for all popular platforms, b) the package adds a platform-specific dependent package automatically, or manually and mentions that in README, or c) the package comes with windows only native dll, which is happens with ancient poorly maintained packages, it's a rare case nowadays but it does happen.

    As someone whose primary PL is C#, I found https://github.com/waf/CSharpRepl and https://github.com/dotnet-script/dotnet-script far more accessible and useful. Compilation caching for the latter works relatively well to make startup latency tolerable.

    Or I just do `dotnet new console -o MyScriptName --aot`, echo code into Program.cs and `dotnet publish -o .` it. Some do that with Rust as well. Especially useful if you need your script to go through a lot of data quickly and parallelize that well too.

  • LINQPad – The .NET Programmer's Playground
    4 projects | news.ycombinator.com | 23 Jun 2024
  • Google ZX – A tool for writing better scripts
    8 projects | news.ycombinator.com | 9 Feb 2024
    Especially because these languages are only one package/install away and not two. I don‘t really get for which audience is targeted here. Usage in JS projects maybe, but then why not write it as npm tasks. ..

    I‘m playing around with dotnet-scripts [1] at the moment (C# shop mainly) and this has the same issue imho. The reason why I looked into it was because we have developers not accustomed to bash etc. I still find it silly and would rather use ruby so…

    [1] https://github.com/dotnet-script/dotnet-script

  • Simple PowerShell things allowing you to dig a bit deeper than usual
    6 projects | news.ycombinator.com | 22 Aug 2023
    >making powershell actually enjoyable to use

    My solution was to stop using it and instead use dotnet-script

    https://github.com/dotnet-script/dotnet-script

    Scripting with the full power of modern C# has been a huge win for me. And same/similar scripts will work on Windows/Linux/Mac. As my work language is C#, I don't have to context switch to another language for scripting.

  • REST API using C# .NET 7 with MySql
    6 projects | dev.to | 24 May 2023
    I usually create a container that has all database migrations and tool to execute those migrations. I name migrations as [yyyyMMdd-HHmm-migration-name.sql] but please feel free to use any naming scheme, keep in mind how the tool would order multiple files to run those migrations. I have also added a wait-for-db.csx file that I would use as the entry point for database migrations container. This is a dotnet-script file and would be run using dotnet-script. I have pinned the versions that are compatible with .net sdk 3.1 as this the version roundhouse is build against at the time of writing.
  • Is it possible to create executable from file instead of project, like java or go?
    2 projects | /r/learncsharp | 28 Apr 2023
    thanks, this is very good idea too, and with dotnet-script we can publish executable out of the script!
  • dotnet script script.cxs says no dotnet found
    2 projects | /r/dotnet | 18 Apr 2023
    It sounds like this is feedback for the author of the dotnet script tool: https://github.com/dotnet-script/dotnet-script
  • Administrative Scripting with Julia
    9 projects | news.ycombinator.com | 6 Apr 2023
  • A note from our sponsor - SaaSHub
    www.saashub.com | 13 Jun 2026
    SaaSHub helps you find the best software and product alternatives Learn more →

Stats

Basic dotnet-script repo stats
24
3,000
7.5
16 days ago

Sponsored
ReSharper is now available in VS Code and Cursor
ReSharper brings a professional toolset for C# developers backed by over 20 years of experience, enterprise-grade security, SOC 2 compliance, and the trust of companies worldwide.
www.jetbrains.com

Did you know that C# is
the 11th most popular programming language
based on number of references?