I can't generate a Razor view in ASP.NET Core v7 - Package restore failed

Rafael Andrade 0 Reputation points
2023-03-25T13:34:46.9633333+00:00

I'm new in ASP.NET and I don't know exactly where is the error or which package is broken. It only occurs while generating a template of view. I can generate Controllers and empty Views normally.

I reinstalled the Visual Studio, cleaned and rebuilt the solution, followed the steps from this answer, but still couldn't solve my issue.

Razor options:

View name: Index

Model: Any

User's image

Error:

Error running selected code generator: "Package restore failed. Reverting package changes to project"

Error running selected code generator: "Package restore failed. Reverting package changes to project"

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,188 questions
{count} votes