I'm running through one of Microsoft's tutorials on MVC development and I'm getting errors when trying to create various elements; Views, Controllers, etc.
The error I'm getting is the following:
There was an error running the selected code generator:
'Sequence contains no elements'
It's consistant everytime I try to create a new element. Earlier, I bypassed the error by copying a view and repurposing it. But that's not optimal in the long run!
I'm currently sitting at work doing this tutorial where the issues arise. However, when I started this tutorial at home yesterday (hence, on a different network) I had zero issues. Might that have something to say?
Here's a link to the project on GitHub.
Do you think it's an issues with my network, my project itself, or something completely different?
To anyone seeing this error when attempting to scaffold an upgraded .net6 project.
This moved me next onto a frustrating EF Core issue 'unable to resolve service' error meaning Scaffold was unable to resolve the EF Contexts despite them being correctly in the new program.cs
Visual Studio 2019 and .net core 3.0
Uninstalled: Microsoft.VisualStudio.Web.CodeGeneration.Design Version: 3.1.0-preview3.19558.8
and Installed: Microsoft.VisualStudio.Web.CodeGeneration.Design Version: 3.0.0
Solved the issue for me.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With