Missing Single Page Application template in MVC4 RC

匆匆过客 提交于 2019-12-05 20:07:53

问题


When I installed MVC4 beta on a development PC, it had a template for SPA (Single Page Application). Today on a different PC with the same setup (VS2010 SP1, win7), I installed MVC4 RC but no longer is the SPA template available (see image). Any one else having this issue? or is this a documented change that I could not find?


回答1:


Changes from ASP.NET MVC 4 Beta

The major changes from ASP.NET MVC 4 Beta in this release are summarized below:

Removed ASP.NET Single Page Application: ASP.NET Single Page Application (SPA) shipped with ASP.NET MVC 4 Beta as an early preview of the experience for building applications that include significant client-side interactions using JavaScript. SPA won’t ship with the final MVC 4 release, but will continue to evolve outside of the MVC 4 release. Check out the ASP.NET SPA home page for details.

...

http://www.asp.net/whitepapers/mvc4-release-notes

P.S., Wow I am glad that I didn't use it for an app I build right now. I was considering it 3 months ago, but decided not to risk it because MS said that it is experimental.




回答2:


You can get the SPA template in the Fall 2012 update. More information on the template here and here.




回答3:


It`s very risky now

For example if you try to run it with System.json for serialization it runs well with WebApi and DBDATAContext methods but it`s impossible to use it with Entities relationship entity circular errors and so on. (There is a solution to change private access of method get, but would be too much work to have to change in all the access methos of all your entities.



来源:https://stackoverflow.com/questions/11149119/missing-single-page-application-template-in-mvc4-rc

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!