—
Running C# Without a Project File - File-Based Apps in .NET 10 and C# 14
.NET 10’s file-based apps let you run real C# programs directly from a single .cs file using dotnet run app.cs, avoiding .csproj scaffolding for scripts, prototypes, and utilities. You configure everything with lightweight #: directives for packages, SDK, and build properties, can debug them in VS Code, publish Native AOT executables, and seamlessly convert growing scripts into full project-based apps when needed.


