'What is the _references.js used for?
What is the _references.js file used for in a new ASP.NET MVC 4 project?
Solution 1:[1]
In VS 11, Visual Studio will give you intellisense from all files that have references in the “_references.js” file.
Solution 2:[2]
MSDN documentation: JavaScript IntelliSense
In brief, _references.js stores the list of JS files paths, for which you want the Visual Studio to gather and build the intelisense (aka "code complete"). The VS project adds there some common JS libraries like jQuery to build the intellisense for it. You can add a reference to your custom JS file in form like this:
/// <reference path="MyScriptFile.js" />
Solution 3:[3]
From Visual Studio 2017 forward, this file is no longer used.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Hakan Fıstık |
| Solution 2 | |
| Solution 3 |
