locked
Scaffold template not working VS2k13 Premium RRS feed

  • Question

  • User1786833724 posted

    I am opening an exisitng project. API + MVC Hybrid. Dir Structure :

    • SolutionName/PrimaryProjectName/Controllers/MVC - for all MVC 4 controllers
    • SolutionName/PrimaryProjectName/Controllers/API for all Web API controllers

    When I do right click on controllers folder add --> Controller, I see only API controller options and nothing for MVC. So I mannually created controller and right clicked on ActionResult to add view, like you guessed nothing !

    Here is the what surprised me, I created a brand new MVC / API solution and it works ! I see all options for MVC and API controllers and everything looks normal here. I have a hunch that I've to do something with my Nuget Packages or some Config ...

    Have you everr seen this issue ? How were you able to fix it ?

    Thursday, April 24, 2014 5:32 PM

All replies

  • User-1426144113 posted

    Hi,

    Do you try to repair the VS?

    Thanks

    Friday, April 25, 2014 6:00 AM
  • User-1454326058 posted

    Hi,

    Do you mean, you could not reproduce that scenario in the new project?

    How do you combine the MVC project to the Web API project?

    Could you provide the detail steps to us?

    Thanks

    Best Regards

    Friday, April 25, 2014 9:07 AM
  • User1786833724 posted

    Do you mean, you could not reproduce that scenario in the new project?

    Yes, I opened a project that has both MVC and Web API in my VS2k13 Premium and I am having an issue that I mentioned above. But in the new project that I created from File -> New project, seems to work fine, and I can see scaffolding option for MVC controller here. But that is not the case if I go back and open the exisitng project. From controller method's context menu I see the option to go to view, but the option to Add Vew is absent.

    Could you provide the detail steps to us?

    I just opened the project. And wanted to add MVC controller.

    Friday, April 25, 2014 11:35 AM
  • User-1454326058 posted

    Hi aarsh,

    Since you couldn’t reproduce that scene, you’d better to share the project to me.

    About share the file in the OneDrive, please refer to:

    http://windows.microsoft.com/en-us/onedrive/share-file-folder

    I think, there are something wrong in that project.

    Thanks

    Best Regards

    Tuesday, April 29, 2014 5:32 AM