title: ASP.NET Core MVC web app: controller wizard issue
body: <p>I have the following problem ... Visual Studio 2022 walkthrough code <a href="https://github.com/everstudybee/DatabaseTest" rel="nofollow noreferrer">https://github.com/everstudybee/DatabaseTest</a></p>
  <p>The walkthrough includes three projects:</p>
  <ol>
  <li>Database - Class Library</li>
  <li>TestProject - ASP.NET Core MVC web app</li>
  <li>TestProject2 - ASP.NET Core MVC web app</li>
  </ol>
  <p>There are database classes for the <code>TestProject</code> project in the <code>Database</code> project. Unfortunately, after selecting the wizard, I get the following error. When I configure the controller and views manually, it all works.</p>
  <ol>
  <li><a href="https://i.stack.imgur.com/1fGZJ.png" rel="nofollow noreferrer">Controller selection</a></li>
  <li><a href="https://i.stack.imgur.com/aoGkM.png" rel="nofollow noreferrer">Controller configuration</a></li>
  <li><a href="https://i.stack.imgur.com/zVY1W.png" rel="nofollow noreferrer">Error</a></li>
  </ol>
  <p>When I do not separate the databases into a separate project, but everything is in one, the wizard works beautifully and creates controllers and views, as seen in the <code>TestProject2</code> project.</p>
  <p>Overall, creating a database with <code>Add-Migration</code> and <code>Update-Database</code> works fine. There is only a problem with this controller and views wizard. Maybe there is a way to do it?</p>