rehansaeed.github.io
rehansaeed.github.io copied to clipboard
ConfigureServices method - A namespace cannot directly contain members such as fields or methods.
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