Visual studio missing user interface bits

2019-08-20 15:03发布

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: Normal MVC project

Orchards boilerplate project: Orchards boilerplate project

2条回答
等我变得足够好
2楼-- · 2019-08-20 15:12

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>
查看更多
We Are One
3楼-- · 2019-08-20 15:16

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.

查看更多
登录 后发表回答