I am adding any script file in disk (by Add Existing item > Add as link), to standard mvc3project/scripts folder the file has not seen in compiled version. When i change the referenced js file's properties, Copy to output always or change build action to content or compile the result is the same. How can i add a js file to asp.net mvc project as linked file.
Step by Step
- In asp.net mvc3 project there is folder named "Scripts"
- And i want to add a jscript file to this folder.
- But i dont want to add file as physically.
- I right click on the scripts folder. Add new item. Select the js file. And click the add as linked file.
- the file appears on the script folder. But when i run the site. The file could not be found by the web application.