Azure Cloud Shell comes with .NET installed - currently it’s .NET 6.0.
dotnet new
doesn’t create a project on its own, but it does tell you the other information you need.
When you have the project, you can use the Cloud Shell UI to upload the C# file and then another dotnet
command will run the app.
Need more? Here’s the solution.