title: Visual Studio Intellisense issue: Unknown CSS class 'some-class'
body: <p>I'm developing in Visual Studio 2013 Premium along with Web Essentials 2013 (update 4) an MVC 5 application with LESS for my CSS preprocessor. Web Essentials automatically compiles the files upon saving of the <code>.less</code> file. </p>
  
  <p>The issue I am having is when I create a new HTML element with a class (or id) and then add that class to my <code>.less</code> file with some styles in it, Intellisense does not pick up the change &amp; that the CSS class in the HTML has a corresponding CSS class in my <code>.less</code> stylesheet, therefore it says <strong>Unknown CSS class 'name-of-the-class'</strong>. So for example:</p>
  
  <p>My HTML in my view</p>
  
  <pre><code>&lt;div class="name-of-class"&gt;&lt;/div&gt;
  </code></pre>
  
  <p>CSS in my <code>.less</code> file</p>
  
  <pre><code>.name-of-class {
      color: #000;
  }
  </code></pre>
  
  <p>It doesn't seem to recognize that I added the class in either place, likely because LESS compiles on save and Intellisense doesn't pick up the change.</p>
  
  <p>I have tried:</p>
  
  <ul>
  <li>Closing the files and reopening them after I add the HTML and CSS</li>
  <li>Rebuilding and re-running the solution</li>
  <li>Currently I'm using bundles for attaching my CSS to the page, but instead of bundling the compiled LESS I used a <code>&lt;link href="app.css"/&gt;</code> element directly in the <code>&lt;head&gt;</code> of my HTML file pointing to the compiled LESS file.</li>
  </ul>
  
  <p>An image of the issue I see is below:</p>
  
  <p><img src="https://i.imgur.com/jxgsgfo.png" alt="intellisense error"></p>