News for hackers. Stuff that matters.
Re:Astonishing Performance of .NET 5 by GordonS on Thursday November 12, 2020 @09:03AM (#25069910)
I haven't used C# 9 yet, but I write a lot of console apps and services/daemons using .NET Core (the world is bigger than web apps :), but I don't see why you can't use top-level programs for ASP.NET Core apps, as they have an entrypoint too.

You would of course still have all the usual ASP.NET configuration and DI setup to do though, so the impact would be rather limited.

Re:Astonishing Performance of .NET 5 by tester34 on Thursday November 12, 2020 @09:06AM (#25069936)
>as they have an entrypoint too.

I meant that (as I've heard) you cannot write big app using "top level style" only/mostly

It probably isnt going to reduce "the boiler plate" that people complain about

Re:Astonishing Performance of .NET 5 by jolux on Thursday November 12, 2020 @09:20AM (#25070117)
It will reduce some boilerplate but only for the entry point method