I have created a fresh project in MVC3. Jquery is already referenced in Layout view but vs-doc intellegence is not coming.
Asked
Active
Viewed 155 times
2
-
http://stackoverflow.com/questions/5174554/asp-net-mvc-3-razor-jquery-intellisense – Amit Mishra Jan 03 '14 at 10:33
1 Answers
2
try referencing jquery-1.5.1.js in Same file where you want intelligence.
<script src="../../Scripts/jquery-1.5.1.js" type="text/javascript"></script>
@if (false)
{
<script src="../../Scripts/jquery-1.5.1.min.js" type="text/javascript"></script>
<script src="../../Scripts/jquery-ui.min.js" type="text/javascript"></script>
}
In this way intelligence will work and js file will not be downloaded to client.

Amit Mishra
- 431
- 5
- 16
-
3Yes but in this way, I have to reference in all files. I have already reference in Layout view – KunalKumar Jan 03 '14 at 10:13