문제

Visual Studio 2013 isn't verifying .js files.

I have a separate .js file under a Scripts folder, that is then referenced in my ASPX page.

The intellisense works when the script is within an html page or a .aspx page, but not in a .js file.

Is there something I'm missing?

도움이 되었습니까?

해결책

In order to get intellisense to work with js files referenced on your web pag you need to add a _reference.js file. It really doesn't matter where you put the file, but generally it should be placed along with the rest of your js files. Perhaps in a SCRIPTS folder.

Here is a good article explaining it in further detail.

For More Info: (http://gurustop.net/blog/2012/03/03/javascript-js-intellisense-auto_complete-in-visual-studio-11-beta-the-web-_references-js-file)

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top