I'm building a dotnet tool executing the C# source file without a project file, hope it helps
https://github.com/WeihanLi/dotnet-exec
Install the dotnet tool
dotnet tool install -g dotnet-execute
and execute the csharp source file with dotnet-exec Hello.cs
find more on the github