ASP.NET MVC 3 Beta 的新项目不包括不显眼的验证 Javascript 文件

发布于 2024-09-27 17:12:13 字数 355 浏览 0 评论 0原文

我今天的问题相当简单,但它让我发疯!

我刚刚下载并安装了 ASP.NET MVC 3 Beta 并使用 VS 2010 创建了一个新项目。但是当我检查脚本文件夹时,那里没有以下文件! (根据我的理解,他们应该在那里):

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

任何人都可以告诉我发生了什么事吗?

谢谢

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 are 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

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

梦一生花开无言 2024-10-04 17:12:13

MVC 3 模板应包含这些文件。一些建议:

  1. 您确定使用的是 MVC 3 项目模板(而不是 MVC 2 项目模板)吗?我知道这是显而易见的,但还是问一下以防万一。
  2. 尝试关闭 Visual Studio 并从 Visual Studio 命令提示符运行 devenv.exe /InstallVsTemplates。该命令重新创建 VS 的项目模板缓存。

如果这些不起作用,请告诉我。

The MVC 3 templates should include those files. A couple of suggestions:

  1. 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.
  2. 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文