Where is the Services folder in a .NET Core Razor Pages App?

PPCMD 61 Reputation points
2022-07-22T06:37:45.83+00:00

I am trying to implement email functionality on my new .NET Core Website as per this page:

https://learn.microsoft.com/en-us/aspnet/core/security/authentication/accconfirm. However, I cannot find a folder named 'Services' anywhere in my project. How should I proceed and should I create a folder with that name?

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,156 questions
Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,385 questions
{count} votes

Accepted answer
  1. JasonPan - MSFT 4,201 Reputation points Microsoft Vendor
    2022-07-25T03:10:36.747+00:00

    Hi @PPCMD

    Welcome to Q&A, we can't find Services folder in your project. If you want use it, you can create a new one like the source code.

    224187-image.png

    And I suggest you can learn Scaffold Identity in ASP.NET Core projects first. It will help you to learn this template clearly.

    224176-image.png

    In the document you provided, we need EmailSender.cs and IEmailSender.cs, it show us how to use it manually. In Scaffold Identity, you can override the template pages easily and also can use EmailSender. EmailSender is integrated in the framework.


    If the answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    Best Regards,
    Jason

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful