title: ViewModel Not Being Recognized by MVC 6 in Visual Studio Code
body: <p>I created a ViewModel called AddNewInventoryViewModel (Project is ASP.NET MVC using Visual Studio Code on OSX with the runtime .NET Core 5.0) and added it into the ViewModel models folder, so that I have the structure: </p>
  
  <pre><code>ViewModels/Home/AddNewInventoryViewModel.cs
  Views/Home/AddNewInventory.cshtml
  </code></pre>
  
  <p>My view looked like this:</p>
  
  <pre><code>@model AddNewInventoryViewModel
  ...Content here
  </code></pre>
  
  <p>My Home controller action method looked like this: </p>
  
  <pre><code>[HttpGet]
  public IActionResult AddNewInventory()
  {
      return View();    
  }
  </code></pre>
  
  <p>For sake of brevity, I won't include the ViewModel.cs file itself. </p>
  
  <p>However, when I visited the page in my app (AddNewInventory.cshtml), I received the error: </p>
  
  <pre><code>DNXCore,Version=v5.0 error CS0246: The type or namespace 
  'AddNewInventoryViewModel' could not be found (are you missing a using directive or an assembly reference?)
  </code></pre>
  
  <p>Why the error? What am I missing?</p>