u/tinmanjkin r/dotnet • Recommends
0:00 / 0:00
No projects just C# with `dotnet run app.cs` | DEM518
Microsoft Developer
700K subscribers • 17 videos on Hallway
- Recommended by 1 person: 1 in engineering communities.
- Presented by Damian Edwards
- Made by the vendor. The company whose product it covers made or sponsored it.
Beginner. No background in the topic needed.
86K views1 year ago1 recommendation
Programming languagesTools and practiceC# and .NETThe shell and command line
Damian Edwards demonstrates a new .NET 10 CLI feature that allows running single C# files directly without a project.
Ever wished you could just run some C# without having to think about projects, solutions, or other ceremony? Just create your app.cs file and *run* it? Come learn about new features in the .NET CLI coming in .NET 10 that enable directly running a C# file without the need for a project, with a smooth grow-up path if you decide project features are required. 𝗦𝗽𝗲𝗮𝗸𝗲𝗿𝘀: * Damian Edwards 𝗦𝗲𝘀𝘀𝗶𝗼𝗻 𝗜𝗻𝗳𝗼𝗿𝗺𝗮𝘁𝗶𝗼𝗻: This is one of many sessions from the Microsoft Build 2025 event. View even more sessions on-demand and learn about Microsoft Build at build.microsoft.com DEM518 | English (US) | Developer Tools & .NET #MSBuild Chapters: - Introduction to the Session - Simplifying .NET for Newcomers - Demonstration of Running a Simple C# Program - Utilizing a Humanizer Package - Discussion on Ubuntu and WSL Advantages - File executability in Linux - Web application live demonstration - Discussion begins on enhancements and further actions - Introduction to using Web API and Razor appWhy it's here
1 person recommends thisWhat people say. Recommended as a demonstration of the new project-less C# execution feature coming in .NET 10.
Moments people linked to
No projects just C# with `dotnet run app.cs` | DEM518
u/Atulinin r/dotnet • Mentions
On “C# in One File! No Projects, No Setup”
No need to wait
#:package Humanizer@2.•
using Humanizer;
var started = DateTimeOffset.Parse("2025-05-19");
var since = DateTimeOffset.UtcNow - started;
Console.WriteLine($"It has been {since.Humanize()} since Build started.");
link to this video
u/Atulinin r/dotnet • Mentions
On “C# in One File! No Projects, No Setup”
Just watch the presentation from this year's Build: link to this video
u/Friendly-Memory1543in r/dotnet • Mentions
On “.NET 10, IntelliSense in VSCode, Linux Mint.”
Thanks for the answer. I asked because in the official presentation five months ago (link to this video , starting at 2:35), IntelliSense, including syntax highlighting, was working. I just wanted to find out whether there’s an issue with my specific setup or if it’s a general problem.
u/LogicalAerie5996in r/dotnet • Mentions
On “An Agent in a File”
Thanks! Maybe there is some confusion? There is already support for publishing as a single file, but what's coming in .NET 10 is actually just being able to define your app in a single file without worrying about a csproj file. There is a pretty good GitHub issue here that is tracking the progress and references a lot of related content.
https://github.com/dotnet/sdk/issues/48170
And demo here.
link to this video