visual studio 2013 'add controller' missing

后端 未结 8 2155
轻奢々
轻奢々 2020-12-11 00:31

I update the visual studio 2010 project to visual studio 2013. Then I want to ad a new controller. but there is no add Controller option.

相关标签:
8条回答
  • 2020-12-11 00:47

    I had problem with Add View and Add->Controller not showing up. My project type GUIDs were fine. What worked for me was uninstalling MVC and then reinstalling thru NuGet.

    0 讨论(0)
  • 2020-12-11 00:53

    In my case Unloding and Reloading the project solved the problem. To unload - right click on the project name and choose "Unload Project" from the context menu. Then again right click on the project name and select "Reload Project" from the context menu.

    enter image description here

    enter image description here

    0 讨论(0)
  • 2020-12-11 00:58

    from the img you upload the Project you create is not the ASP.NET MVC Project Maybe try create a ASP.NET MVC Project will find it

    0 讨论(0)
  • 2020-12-11 00:59

    Make sure your .proj file includes all the appropriate project type Guids.

    <ProjectTypeGuids>{E3E379DF-F4C6-4180-9B81-6769533ABE47};{349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids>
    

    The first GUID allows all standard MVC operations in the context menus.

    0 讨论(0)
  • 2020-12-11 01:04

    Include Microsoft.ASP.NET MVC from Nuget Package in your project, you should be able to see the Add View menu when you right inside a method of controller class.

    0 讨论(0)
  • 2020-12-11 01:04

    Combining the answers given at Reinstall Microsoft Visual Studio Asp.net MVC 5 Scaffolding extension

    somebody came up with a solution which worked

    http://awesomebitsnbytes.blogspot.com/2015/01/aspnet-mvc-menus-missing-add-controller.html

    0 讨论(0)
提交回复
热议问题