`dotnet-exec` is a command-line tool for excuting C# program with custom entry point
$ dotnet add package dotnet-executedotnet-exec is a command line tool for custom C# program entry point
dotnet-exec HttpPathJsonSample.cs
dotnet-exec HttpPathJsonSample.cs --entry MainTest
dotnet tool update -g dotnet-execute
By default, it's using the latest language version, you can use the Preview version with --lang-version=Preview
By default, it would use MainTest as the entry point, you can customize with --entry option