dotnet-script is a project that aims to alleviate that friction. It allows C# code to be run as a single script file. No Main method, no . csproj, and transparent compilation. Let's create a simple “Hello World” script as well as a more complex script that uses a NuGet package