I am using Visual Studio 2010 / ASP.net MVC 3 with the Razor View Engine. I created a new Project with the Internet Application template. What do I need to do to get Intellisense working?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If that’s jQuery specific as the title specifies, trying adding line to the tag in the
Views/Shared/_layout.cshtml(or.vbhtml) file:This will reference the intellisense file to VisualStudio and still will not reference it in runtime.
Just remember, point to the vsdoc file relatively to the file you put this code in. Any code like
~/Url.Content()or any other runtime code will not be visible to VS for intellisense.That’s exactly why
if (false)hides the script reference from runtime (theifblock isn’t executed), but doesn’t hide it from VS intellisense (and provide another reference usingUrl.Content()or so to the .min.js file).