And dotnet run can now run single files of C# code, with the ability to import other projects and packages if needed.
#!/usr/bin/dotnet run
https://devblogs.microsoft.com/dotnet/announcing-dotnet-run-...https://andrewlock.net/exploring-dotnet-10-preview-features-...