title: Visual Studio 2022 don't display errors on .cshtml files
body: <p>I just installed VisualStudio 2022 some days ago and I realized that it is not showing me the errors that I made in the views (.cshtml files) for example something simple as:</p>
  <pre><code>@{
   var MyNumber = 1;
   mynumber = 3
  }
  </code></pre>
  <p>Visual studio doesn't recognize the variable that does not exist or that the assign does not end with ';' and then it doesn't underline it or remark it in red and It's very annoying to be honest. It does not happen for my old instance VS2017</p>
  <p>VS2022:
  <a href="https://i.stack.imgur.com/lvor3.png" rel="nofollow noreferrer">Code Image from VS2022</a>
  VS2017:
  <a href="https://i.stack.imgur.com/QzfAA.png" rel="nofollow noreferrer">Code Image from VS2017</a></p>
  <p>I've been researching about and already tried solutions like delete the .suo file or the .vs folder on the project. Also tried clearing Cache, even reinstalling Visual Studio like 3 times.</p>
  <p>If anyone could help me it would be pretty awesome.</p>