Context menu to Add Controller/View missing

前端 未结 17 1111
时光说笑
时光说笑 2020-11-28 06:04

I have integrated ASP.NET MVC 4 into existing asp.net web site. Both works fine but I don\'t see any menu/shortcuts to create controller/view within visual studio IDE. Are

17条回答
  •  Happy的楠姐
    2020-11-28 06:18

    By right clicking the project in Solution Explorer, you need to unload the project, edit the project, change the tag using the chart below, and then reload the project. Paste the appropriate GUID to the front of the list in the csproj file.

    The different GUIDs for different versions of MVC:

    ASP.NET MVC 1   {603C0E0B-DB56-11DC-BE95-000D561079B0}
    ASP.NET MVC 2   {F85E285D-A4E0-4152-9332-AB1D724D3325}
    ASP.NET MVC 3   {E53F8FEA-EAE0-44A6-8774-FFD645390401}
    ASP.NET MVC 4   {E3E379DF-F4C6-4180-9B81-6769533ABE47}
    ASP.NET MVC 5   {349C5851-65DF-11DA-9384-00065B846F21}
    

提交回复
热议问题