Note that there are some explanatory texts on larger screens.

plurals
  1. POVS2012 MVC 4 Intellisense for CSS Classes in partial views not working
    primarykey
    data
    text
    <p>PROBLEM:</p> <p>I have a master page where the CSS is embdeded, and I am trying to access the CSS classes through the VS2012 intellisense on my partial views.</p> <p>RESEARCH &amp; SOLUTIONS:</p> <p>I have spent many hours now trying to resolve this issue and have noted a number of other stackoverflow posts regarding this issue:</p> <p><a href="https://stackoverflow.com/questions/4009040/viewing-css-intellisense-in-partial-views-and-content-pages-visual-studio-2010">Viewing CSS Intellisense in partial views and Content pages - Visual Studio 2010?</a></p> <p><a href="http://weblogs.asp.net/jeffwids/archive/2009/06/07/why-does-visual-studio-not-resolve-my-css-class-names.aspx" rel="nofollow noreferrer">http://weblogs.asp.net/jeffwids/archive/2009/06/07/why-does-visual-studio-not-resolve-my-css-class-names.aspx</a></p> <p><a href="https://stackoverflow.com/questions/961629/why-does-visual-studio-not-resolve-my-css-class-names">Why does Visual Studio not resolve my CSS class names?</a></p> <p><a href="http://derekreynolds.wordpress.com/2012/11/30/why-does-visual-studio-not-resolve-my-css-class-names-or-js-method-names/" rel="nofollow noreferrer">http://derekreynolds.wordpress.com/2012/11/30/why-does-visual-studio-not-resolve-my-css-class-names-or-js-method-names/</a></p> <p>someone has also posted a video showing the EXACT issue I'm having: <a href="http://www.youtube.com/watch?v=1bp1TxswSHQ" rel="nofollow noreferrer">http://www.youtube.com/watch?v=1bp1TxswSHQ</a></p> <p>The solutions provided are to use relative path with the @if (false) {... trick on the partial view page:</p> <pre><code>@if (false) { &lt;link type="text/css" rel="Stylesheet" href="../../content/css/styles.css"/&gt; } </code></pre> <p>OR, to use the following on the partial view:</p> <pre><code>&lt;link rel="stylesheet" runat="server" media="screen" href="~/content/css/styles.css" /&gt; </code></pre> <p>None of these seem to work for me.</p> <p>I am using VS 2012 Express. </p> <p>Any ideas?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload