Back to Practical Aspnetcore

dotnet run program.cs

projects/net10/dotnet-run/README.md

latest389 B
Original Source

dotnet run program.cs

This is a sample code on how you can build an ASP.NET Core application using the new .NET 10 project-less dotnet run xxx.cs functionality.

You can see more about this latest feature here https://www.youtube.com/watch?v=98MizuB7i-w.

Go to command line and type dotnet run .\Program.cs and voilla. dotnet watch is not working on this project-less mode.