Authentication Tutorial Project - Scaffold Register, Login, LogOut, and RegisterConfirmation

Dean Everhart 1,496 Reputation points
2023-04-13T14:13:40.0766667+00:00

Error at seventh step (below)


PM> Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore -Version 6.0.11
Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore : The term 'Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore' is not recognized as 
the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the 
path is correct and try again.
At line:1 char:1
+ Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore -Version 6.0.11
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (Microsoft.AspNe...tyFrameworkCore:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException
 
PM> Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore
Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore : The term 'Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore' is not recognized as 
the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the 
path is correct and try again.
At line:1 char:1
+ Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (Microsoft.AspNe...tyFrameworkCore:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException
PM> Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore -Version 6.0.11
Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore : The term 'Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore' is not recognized as 
the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the 
path is correct and try again.
At line:1 char:1
+ Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore -Version 6.0.11
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (Microsoft.AspNe...tyFrameworkCore:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

Steps: Introduction to Identity on ASP.NET Core  

  1. In the Authentication type input, select Individual User Accounts.  
  2. Update-Database  
  3. Run the app and register a user. Depending on your screen size, you might need to select the navigation toggle button to see the Register and Login links.  
  4. Configure Identity services https://learn.microsoft.com/en-us/aspnet/core/security/authentication/identity?view=aspnetcore-6.0&tabs=visual-studio#configure-identity-services  
    Scaffold Register, Login, LogOut, and RegisterConfirmation  
  5. Install-Package Microsoft.VisualStudio.Web.CodeGeneration.Design -Version 6.0.11  
  6. Add New Scaffolded Item at the project level / select Identity / Add  User's image

Migrations 7. Install-Package Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore -Version 6.0.11

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,240 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,317 questions
0 comments No comments
{count} votes

Accepted answer
  1. AgaveJoe 26,166 Reputation points
    2023-04-13T15:31:44.57+00:00

    "Install-Package" is the actual command which is missing from the command line as shown in PM error message you shared. Manage packages with the Visual Studio Package Manager Console (PowerShell)

    PM> Install-Package Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore -Version 6.0.11
    

0 additional answers

Sort by: Most helpful