Please check if the versions of the NuGet packages required for the scaffolding match:
- Microsoft.EntityFrameworkCore.SqlServer
- Microsoft.EntityFrameworkCore.Tools
- Microsoft.VisualStudio.Web.CodeGeneration.Design
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hello!
I have an error whenever I try to scaffold a new scaffold element:
It says:
"Error
An error occurred while running the selected code generator:
"Exception of type 'System.InvalidOperationException' was thrown."
This is a link to my project: https://github.com/jedrulcia/TrainingPlanApp.Web.git
Thanks in advance!
Please check if the versions of the NuGet packages required for the scaffolding match:
Okay so I have observed that I had some issues since I added NUnit Test project to my solution. This was one of these issues that I had:
Whenever I opened the solution I had to comment these lines. However, I could work on my project anyways, so I wasn't bothered by it. But now I thought this could also affect scaffolding, and that was actually the issue. I have deleted the NUnit folder and project from my solution and it is working now. I do not need to have to unit tests for my project for now anyways, but leaving the comment if that would help anyone in future.