Missing jQuery validation scripts in fresh ASP.NET MVC 3 Beta installation

I’m having a frustrating issue with my new ASP.NET MVC 3 Beta setup. After installing the framework and creating a brand new project in Visual Studio 2010, I noticed that several important JavaScript files are missing from the Scripts directory.

Specifically, these files are nowhere to be found:

· /Scripts/jquery.validate.unobtrusive.js
· /Scripts/jquery.validate.unobtrusive.min.js  
· /Scripts/jquery.unobtrusive-ajax.js
· /Scripts/jquery.unobtrusive-ajax.min.js

From what I read in the documentation, these unobtrusive validation files should be included by default in new MVC 3 projects. Has anyone else encountered this problem? Is there a step I’m missing during project creation, or do I need to manually add these files somehow?

Any help would be greatly appreciated!

Indeed, this issue has been recognized in a number of MVC 3 Beta setups. To resolve it, you should install the Microsoft jQuery Unobtrusive Validation package. You can do this via the Package Manager Console by executing Install-Package Microsoft.jQuery.Unobtrusive.Validation. This will automatically add the necessary scripts to your Scripts directory and manage any dependencies, which is definitely more efficient than manual downloads. I faced a similar problem during my own upgrade process, and this solution worked perfectly.

totally get the frustration! had to do the same when i set up my project. just download em from the nuget package or the ms site, and you’ll be good to go. it’s a pain, but that’s how betas roll, right?