News for hackers. Stuff that matters.
Re:What's new in the .NET 11 runtime by mook on Wednesday November 11, 2026 @01:31AM (#50450324)
I know this is not really the case for many others, but for me it's because there's a lot of set up; that's usually done by IDEs, but I'm unlikely to get an IDE before I've kicked the tires a bit. Go is run "go mod init", or hand write one, or even skip that step to write a single file thing. JavaScript is similar, you can start with one file, or start with a relatively simple package.json. Python / ruby / Perl / PHP is just the one file.

As far as I know, C# and friends still require setting up a project file, and there isn't a tutorial that has one you can easily copy.

Maybe this is why I also can't get into Android development.

(It also doesn't help that my Linux distro doesn't ship the toolchain because it can't be bootstrapped from text files, as far as I understand it)

Re:What's new in the .NET 11 runtime by eeeficus on Wednesday November 11, 2026 @01:41AM (#50450365)
This used to be true but is very much false now! The CLI can create any new project, even complicated ones. You can create your own project templates if you want. You can even start a solution and project files in an editor. It’s all just xml!
Re:What's new in the .NET 11 runtime by iCarrot on Wednesday November 11, 2026 @01:46AM (#50450390)
Does `dotnet new <template>` not count?

You could also `dotnet run script.cs` to run a single file without setting up project.

Re:What's new in the .NET 11 runtime by rebeccapowell on Thursday November 12, 2026 @02:02AM (#50463966)
`dotnet run script.cs` is (in most cases) now a really nice replacement for powershell.
Re:What's new in the .NET 11 runtime by EMM_386 on Wednesday November 11, 2026 @02:27AM (#50450647)
This should do it:

dotnet new console

dotnet run

Re:What's new in the .NET 11 runtime by vortegne on Wednesday November 11, 2026 @02:49AM (#50450778)
You are exactly proving the parent comment right!
Re:What's new in the .NET 11 runtime by CharlieDigital on Wednesday November 11, 2026 @10:56AM (#50454890)
A lot of this changed with .NET Core and later numbered .NET releases (currently 11 as you see from this thread :)

    dotnet new webapi
    dotnet new console
    dotnet new <template_or_sdk_here>
    dotnet run
    dotnet test
The tool chain has matured significantly and stabilized and it's quite easy to use. IMO, much easier than building backends with TS (the madness that is tsconfig.json) and getting configuration correct with TS tool chain (some easier than others).