0

When I try to scaffold the files for Identity in ASP.Net I get an error message.

I have seen the answers to previous questions like this. And all my packages are up to date. I don't know what I'm doing wrong.

I have tried putting all other packages to 5.0.2, that did nothing.

This is the error message I get.

ErrorMessage

My Installed packages.

InstalledPackages

The update tab.

UpdateTab

5
  • Did you check this link? stackoverflow.com/questions/45906856/… Commented Apr 29, 2021 at 12:42
  • I have tried the tips, I cleared the cache, and as I said already tried to roll back the solution to 5.0.2. That didn't help. Commented Apr 29, 2021 at 12:48
  • Which version of Visual Studio 2019 are you using? Try to use Visual Studio 2019 16.8 or later Besides, I suggest you create a new Asp.Net core project, will Scaffold work? If it works in the new project, I suggest you check the worked project csproj file, then, according to it you change your main application's csproj file. Or, you can copy the code to the new project. Commented Apr 30, 2021 at 7:53
  • I'm using 16.9.4. I tried running a scaffolding in another test project, there it worked, and in the .csproj file all packages seemed 5.0.4. I the set all the packages in my original project to 5.0.4 and it worked! Thanks a lot, not only for the answer, but also for an easy way to test things in the future. Commented Apr 30, 2021 at 8:54
  • Does this answer your question? Error : Package restore failed Commented May 1, 2021 at 1:50

1 Answer 1

0

As mentioned in the comments above, I made a test solution and scaffolded immediately. This worked, and I saw that the packages had version 5.0.4.

I transferred the packages in my main project to 5.0.4, and the scaffolding was successful!

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.