Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>See this post by Jeff King about getting Visual Studio to be able to find the javascript file with the intellisense: <a href="http://blogs.msdn.com/webdevtools/archive/2008/11/18/jscript-intellisense-faq.aspx" rel="nofollow noreferrer">JScript IntelliSense FAQ</a>. </p> <p>In particular read point #4, third bullet:</p> <blockquote> <p>Site-Relative Paths - These are paths of the form "/folder/file", and is calculated from the base of your site (<a href="http://site/application/folder/file" rel="nofollow noreferrer">http://site/application/folder/file</a>). This approach is supported by ASP.NET Web Forms and ASP.NET MVC. However, it is not supported by Visual Studio. The reason is because Visual Studio does not always know the final deployed location of your site and thus the path resolution cannot be guaranteed. Given that quite we've seen few folks are using site-relative paths, we could consider making an assumption just resolving this type of path to the root of the project. Given the risk that you may think your site is working when it's really not, I wanted to see how many people were supportive of this.</p> </blockquote> <p>Notice the “[Site-Relative Paths are] NOT supported by Visual Studio”. I always use site relative paths for my javascript and css files so the solution to get Visual Studio to find your javascript files is the same solution to get Visual Studio to find your css files:</p> <pre><code>&lt;link href="/content/default.css" rel="stylesheet" type="text/css" /&gt; &lt;% if (false) {%&gt; &lt;link href="../../content/default.css" rel="stylesheet" type="text/css" /&gt; &lt;% } %&gt; </code></pre> <p>And now Visual Studio can find the CSS file and validate my CSS Class names exist (and Design View looks so much better too).</p> <p>Posted on my blog here: <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">Why does Visual Studio not resolve my CSS class names?</a></p> <p>-Jeff</p>
    singulars
    1. This table or related slice is empty.
    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.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      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