← Back
Milan Jovanovic June 13, 2025 9m

C# Scripting Is Here, And It's Awesome (dotnet run app.cs)

Summary

Microsoft has introduced a new scripting capability for C programming, announced at Build 2024, which allows developers to run C files directly using .NET 10 preview without creating a traditional project. The feature enables quick scripting by using a simple syntax, including referencing NuGet packages with a hash symbol and specifying package versions, and requires the latest .NET SDK and VS Code C DevKit extension. This innovation represents another step in .NET's evolution towards more streamlined and accessible application development, making it easier to write and execute C code with minimal overhead. The practical takeaway is that developers can now create and run C scripts more efficiently, with enhanced flexibility and reduced complexity compared to traditional project structures.

View original episode ↗