Visual studio missing user interface bits

时光怂恿深爱的人放手 提交于 2019-12-12 04:22:18

问题


I used orchard's codegen to make a boilderplate module. This created a csproj with boilerplate files and folders in MVC3 format.

However visual studio doesnt have the UI helpers that come along with an MVC project (such as add controller).

How do i change the project settings to get the nice MVC UI back?

Normal MVC project:

Orchards boilerplate project:


回答1:


Answer here: https://stackoverflow.com/a/4610008/828859

Needed to change this line in the csproj file

<ProjectTypeGuids>{E53F8FEA-EAE0-44A6-8774-FFD645390401};{349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids>



回答2:


This is a FAQ. The projects are not set to MVC so that the solution can be open and work even if MVC is not installed on the box. This is to remove a prerequisite. You can get the additional tooling by editing the csproj files and adding the project type. Look at an MVC project to find differences.



来源:https://stackoverflow.com/questions/12810338/visual-studio-missing-user-interface-bits

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