This meant that Visual Studio couldn’t find my _references.js file.
At first I added the following to the @Scripts Section in my .vbhtml file;
If (False) Then
Where the If (False) code forces the compiler to ignore the file when publishing.
But this would end up being silly if I had lots of files. So, I had a quick look around and found a couple of useful answers on Stack Overflow;
Where, basically, you need to add a reference to your new _references.js file to the Intellisense list options in Visual Studio;
- In the “Add a reference to current group”, type in the relative path to your _references.js file (for me this was “~/Scripts/lib/_references.js”
Hey presto, you should now have working intellisense!