.NET 10 introduces file-based apps, enabling C# developers to run standalone .cs files directly with `dotnet run file.cs` — no .csproj required. Scripts can reference NuGet packages and existing project files via directives like `#:package` and `#:project`, giving scripts direct access to application domain logic. This fills a long-standing gap in the C# ecosystem (previously addressed only by F#'s `dotnet fsi` or third-party tools), making it practical to maintain a Scripts/ folder for data seeding, format verification, one-off exports, and other utility tasks without creating throwaway console apps or polluting test suites.
2 Comments
Sort: