jump to:allmastodonblueskylemmylobstersdevstackwikirsshn
wwebbit
view: | | |

Knowledge / everything · hot matching “asp.net-core-webapi”

1 shown · updated 0s ago · read only
  1. What exactly does builder.Services.AddControllers() do? (stackoverflow.com)stack

    12 points by g.pickardou in stackoverflow.com · 3y ago · stack

    When I create a new ASP.NET Core 6/7 WebApi project and check the option "Use Controllers...." in VS 2022, this line appears in Program.cs : builder.Services.AddControllers(); The scaffolded WeatherForecastController is working properly. However in case I comment this line // bu…