网页:版本设置有什么作用? [英] What does the webpages:Version setting do?

查看:16
本文介绍了网页:版本设置有什么作用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用 ASP.Net MVC 3 工具创建新项目时,它会将以下应用程序设置添加到 Web.config:

When creating a new project using the ASP.Net MVC 3 tools it adds the following application setting to the Web.config:

<appSettings>
  <add key="webpages:Version" value="1.0.0.0"/>
</appSettings>

它有什么作用?

推荐答案

这是最近在 ASP.NET MVC 3 项目中引入的(在安装 ASP.NET MVC 3 工具更新).我猜它是为在 ASP.NET MVC 4 中处理即将发布的 WebPages 版本(Razor)做准备,您可以在其中为您的应用程序选择 razor 视图引擎的版本.目前它做的不多.

This was recently introduced in ASP.NET MVC 3 projects (after installing the ASP.NET MVC 3 Tools Update). I guess it is in preparation for handling upcoming WebPages releases (Razor) in ASP.NET MVC 4 where you will be able to choose the version of the razor view engine with your application. Currently it doesn't do much.

这篇关于网页:版本设置有什么作用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆