jump to:allmastodonblueskylemmylobstersdevstackwikirsshn
wwebbit
view: | | |

Front page / Stack Overflow · hot matching “.net-core”

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

    15 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…