2

I am currently looking to build a console app to interact with a .NET webservice and insert AspNetUsers into my database.

I'm currently using this: https://www.codepoc.io/blog/net-core/5291/create-aspnetcore-identity-users-using-console-application

As a guide. However, I'm a little confused when it comes to the various dependencies required to successfully run the aforementioned code.

My workspace currently looks like this:

enter image description here

Am I correct in assuming that I may have the wrong version of AspNetCore? Am I missing something else or is this blog post out of date now? What would the best way be to insert .NET Identity users into the database using a .NET core console app - I'm equally not opposed to keeping it as a .NET Framework? Console app.

Any guidance appreciated.

1 Answer 1

1

I think Microsoft.AspNetCore.Identity.dll is its own dll which you can download via nuget from here. Please add that nuget package to your solution. Microsoft.AspNetCore is a different dll that does not contain the Microsoft.AspNetCore.Identity namespace which is why you are getting the error and not able to resolve the reference.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.