title: The name 'TempData' Does not exist in the current context .NET Core
body: <p>I'm working in a .NET Core application in Visual Studio 2017 and in all my views I'm facing the error "The name 'TempData' Does not exist in the current context", but in the controllers it's normal.</p>
  
  <p><a href="https://i.stack.imgur.com/YKKn6.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/YKKn6.jpg" alt="enter image description here"></a></p>
  
  <p>Anyone had this error?</p>