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 those only available to ASP.NET MVC template?
相关问题
- Carriage Return (ASCII chr 13) is missing from tex
- MVC-Routing,Why i can not ignore defaults,The matc
- How to know full paths to DLL's from .csproj f
- How to store image outside of the website's ro
- Importing NuGet references through a local project
相关文章
- asp.net HiddenField控件扩展问题
- asp.net HiddenField控件扩展问题
- Asp.Net网站无法写入错误日志,测试站点可以,正是站点不行
- asp.net mvc 重定向到vue hash字符串丢失
- FormsAuthenticationTicket expires too soon
- How to show location of errors, references to memb
- MVC CDN fallback for Style Bundle
- “Dynamic operations can only be performed in homog
For older version
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:
For people using MVC 5, add this key
in the beginning of . The other guids won't work.
I am on VS2012 and tried Dimitrov's answer (adding a particular GUID to the project file's ProjectTypeGuids). While this did give me the missing context menu for the controller actions, I was missing intellisense on my Razor pages.
It turns out I was missing the VS tooling for the version of the MVC project I was working on, and installing this tooling (rather than editing the project file) resolved my issues.
Download page for ASP.NET and Web Tools 2013.1 for Visual Studio 2012
I found this download link from the following blog post:
Announcing release of ASP.NET and Web Tools 2013.1 for Visual Studio 2012
Do nothing just update your MVC project. Fire this command in your Nuget Package Manager console.
Answer 2 was correct just wrong guid
is what you need for MVC in VS2010