[ACCEPTED]-What does the webpages:Version setting do?-configuration
This was recently introduced in ASP.NET 6 MVC 3 projects (after installing the ASP.NET MVC 3 Tools Update). I 5 guess it is in preparation for handling 4 upcoming WebPages releases (Razor) in ASP.NET 3 MVC 4 where you will be able to choose the 2 version of the razor view engine with your 1 application. Currently it doesn't do much.
From the MSDN Blog,
It determines which version of 13 Razor engine to use when editing razor webpage 12 files.
In VS2013 Preview, we released new 11 Razor V3 runtime and design time Engine 10 to support MVC5 and Razor V3 website’s runtime 9 and design time behavior. Unlike Razor V2 8 runtime and design time, VS2013 did not 7 GAC these binaries. Instead, the binaries 6 are installed in the project bin folder 5 when corresponding NuGet package is installed, and 4 in “%ProgramFiles (x86)%\Microsoft Visual 3 Studio 12.0\Common7\IDE\CommonExtensions 2 \Microsoft\Web\Razor\v3.0” to support design 1 time.`
If the key is missing from web.config file such as default Razor V2/V3 website, VS will use bin directory’s razor dll version to determine the design time razor engine dll to load.
Updated 10/9/2013: In VS2013 RC and RTW, VS will open the single webpage file using the highest Razor version on the box if a single webpage file (i.e. cshtml or vbhtml files) is opened without bin directory nor web.config setting.
It is being used to distinguish between the second and 1 the third version of Razor engine.
More Related questions