title: Package restore failed. Rolling back package changes in .Net Core Web API
body: <p>I'm working on a .Net Core 3.1 Web API project. I want to add an <code>API Controller using Entity Framework</code>. But it keep generating an error. It says, <strong>&quot;There was an error running the selected code generator: Package restore failed. Rolling back package changes.&quot;</strong></p>
  <p>I installed the NuGet packages under version 3.1 too. I tried clearing all NuGet caches, but it didn't work.
  How can I fix this? Please help!</p>