I've discovered a quirk or bug in VS2008 with regards to the assembly references for javascript intellisense.
If the project that you add the reference to is within a solution folder, the intellisense for the referenced assembly will not work. The project's physical location does not matter. It only matters if the project is inside a solution folder.
It took me a lot of trial and error to discovered this. I found that when I used the assembly reference...
... inside a file that is in a project that is not under a solution folder, the intellisense works just fine. I then copied my test project to a completely different folder and added it back into my solution and it still worked fine. I then added it to
a solution folder in the same solution and the javascript intellisense did not work.
I was unable to find any references to this particular problem using Google, so I hope that this post will be able to help people with the same kind of problem.
I have the same issue under VS2010. Had problems with the Telerik RadControls JS intellisense, and it was their support that ended up finding the issue. My web application project was located under a solution folder, and JS intellsense did NOT work. As soon
as I moved the web app project to the top level directly under the solution, then intellisense immediately started to work.
killercolt25...
Member
2 Points
2 Posts
JavaScript Intellisense for Assembly References
Feb 25, 2010 06:02 PM|LINK
Hi,
I've discovered a quirk or bug in VS2008 with regards to the assembly references for javascript intellisense.
If the project that you add the reference to is within a solution folder, the intellisense for the referenced assembly will not work. The project's physical location does not matter. It only matters if the project is inside a solution folder.
It took me a lot of trial and error to discovered this. I found that when I used the assembly reference...
/// <reference assembly="Link.Web.Validation" name="Link.Web.Validation.Script.validation.js " />
... inside a file that is in a project that is not under a solution folder, the intellisense works just fine. I then copied my test project to a completely different folder and added it back into my solution and it still worked fine. I then added it to a solution folder in the same solution and the javascript intellisense did not work.
I was unable to find any references to this particular problem using Google, so I hope that this post will be able to help people with the same kind of problem.
Cheers!
KC
Nygaard
Member
2 Points
1 Post
Re: JavaScript Intellisense for Assembly References
Jan 13, 2012 05:22 AM|LINK
Hi
I have the same issue under VS2010. Had problems with the Telerik RadControls JS intellisense, and it was their support that ended up finding the issue. My web application project was located under a solution folder, and JS intellsense did NOT work. As soon as I moved the web app project to the top level directly under the solution, then intellisense immediately started to work.
/MN