New project for ASP.NET MVC 3 Beta not including unobstrusive validation Javascript files
My problem today is rather simple, but its driving me nuts!
I just downloaded and installed the ASP.NET MVC 3 Beta and created a new project using VS 2010. But when I check the scripts folder, there a开发者_运维知识库re none of the following files there! (from what I understood, they should be there):
· /Scripts/jquery.unobtrusive-ajax.js
· /Scripts/jquery.unobtrusive-ajax.min.js
· /Scripts/jquery.validate.unobtrusive.js
· /Scripts/jquery.validate.unobtrusive.min.js
Anyone could tell me what is going on?
Thanks
The MVC 3 templates should include those files. A couple of suggestions:
- Are you sure you are using the MVC 3 project template (and not the MVC 2 project template)? I know it's obvious, but asking just in case.
- Try shutting down Visual Studio and running
devenv.exe /InstallVsTemplates
from a Visual Studio command prompt. This command recreates VS's project template cache.
Let me know if these don't work.
精彩评论