سلام
داشتم قسمت یازدهمو میدیدم (advance MVC) موقع اضافه کردن یه اسکریپت جدید فهمیدم intellisense کار نمیکه یا مثلا $ میزنم هیچ اتفاقی نمیافته قبلا هم به این مشکل خورده بودم نمیدونم باید چی کار کنم
از VS2015 استفاده میکنم
متن ارور : intellisense was unable to determine an accurate completion list expression. the provided list contains all identifiers in the file
ممنون از کمکتون
جواب :
navigate to the [Tools] > [Options] > Text Editor > JavaScript > IntelliSense > References options
select Implicit (Web)
you can find "~/Scripts/_references.js" (if you want to put it in different place, change it here)
go to ~/Scripts and add new item "_references.js"
add /// <reference path="path\jquery-1.7.1.js" />
in "_references.js"
or /// <reference path="~\root\path\jquery-1.7.1.js" />
Happy coding :)
Edit note:
Remember to put jquery-1.7.1-vsdoc.js in the same folder with jquery-1.7.1.js
After making above mentioned changes, if it is still not working try restarting visual studio.
توی مسیر گفته شده برید و مسیر ~/Scripts/_references.js را اضافه کنید
سپس توی فایل Script~ برنامه خود یک اسکریپت جدید با نام _references.js اضافه کنید و پروجه را بیلد کنید
و در آخر /// <reference path="path\jquery-1.7.1.js" /> را به _references.js اضافه کنید
مشکل من حل شد ... :)