News for hackers. Stuff that matters.
Re:The Case for C# and .NET by neonsunset on Monday July 25, 2022 @07:07AM (#32222863)
I'm not sure which learning material you used back then but this seems more like an unfortunate accident.

With .NET 6 SDK, 'dotnet new webapi' will give you a template project that does everything you listed save for extended validation logic which you can easily add with 'FluentValidation'.

In addition, to run ASP.NET Core nowadays you only need:

  var builder = WebApplication.CreateBuilder();
  var app = builder.Build();
  app.MapGet("/posts/{name}", ([FromRoute] string name) => /* controller logic, classes will be serialized as JSON */);
  await app.RunAsync("http://localhost:8080");

There are no comments on this comment yet.