Recently I have faced problem in my MVC 5 project. When I right click on controller folder and select Add option from menu then Controller option is missing. Menu's were in the past, but don't know why menu is not showing now.
最近我在我的MVC 5项目中遇到了问题。当我右键单击控制器文件夹并从菜单中选择添加选项时,则缺少控制器选项。菜单已经过去,但不知道为什么菜单现在没有显示。
What could be the cause of this.
可能是什么原因造成的。
1 个解决方案
#1
0
Later I found that reference added in my project for system.web.mvc.dll is for version 4.0.0. When I remove this dll and add reference of system.web.mvc.dll of verion 5.2.2.0 that solved my problem.
后来我发现在我的system.web.mvc.dll项目中添加的引用是针对4.0.0版的。当我删除这个DLL并添加verion 5.2.2.0的system.web.mvc.dll的引用解决了我的问题。
Now menu start appearing on right click System.Web.MVC.dll for MVC 5 can be found at the path "C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET Web Stack 5\Packages\Microsoft.AspNet.Mvc.5.2.2\lib\net45"
现在菜单开始出现在右键单击System.Web.MVC.dll for MVC 5可以在路径“C:\ Program Files(x86)\ Microsoft ASP.NET \ ASP.NET Web Stack 5 \ Packages \ Microsoft.AspNet中找到.Mvc.5.2.2 \ LIB \ net45"
#1
0
Later I found that reference added in my project for system.web.mvc.dll is for version 4.0.0. When I remove this dll and add reference of system.web.mvc.dll of verion 5.2.2.0 that solved my problem.
后来我发现在我的system.web.mvc.dll项目中添加的引用是针对4.0.0版的。当我删除这个DLL并添加verion 5.2.2.0的system.web.mvc.dll的引用解决了我的问题。
Now menu start appearing on right click System.Web.MVC.dll for MVC 5 can be found at the path "C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET Web Stack 5\Packages\Microsoft.AspNet.Mvc.5.2.2\lib\net45"
现在菜单开始出现在右键单击System.Web.MVC.dll for MVC 5可以在路径“C:\ Program Files(x86)\ Microsoft ASP.NET \ ASP.NET Web Stack 5 \ Packages \ Microsoft.AspNet中找到.Mvc.5.2.2 \ LIB \ net45"