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!
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.
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).
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)