rehansaeed.github.io icon indicating copy to clipboard operation
rehansaeed.github.io copied to clipboard

ConfigureServices method - A namespace cannot directly contain members such as fields or methods.

Open eliassal opened this issue 4 months ago • 0 comments

Describe the bug

It is indicated to "In our Program.cs I've added a ConfigureServices method....", which version of .net you are using? I imagine i it is less than 8. I tried to add ConfigureServices method in a .Net 8 but it is not accepting, can you please provide your code or how to adapt it to .Net 8. Thanks in advance

eliassal avatar Jul 21 '25 16:07 eliassal