无法向 ASP.NET MVC 5 项目添加视图 [英] Cannot add view to ASP.NET MVC 5 project

查看:69
本文介绍了无法向 ASP.NET MVC 5 项目添加视图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试向 Visual Studio 2013 中的 ASP.NET MVC 5 项目添加视图,但添加"按钮显示为灰色.

I'm trying to add a view to an ASP.NET MVC 5 project in Visual Studio 2013, but the Add button is greyed out.

推荐答案

我得到这个问题已经很久了,我所做的只是升级了 Mvc 的 nuget 包并修复了它.我怀疑我在解决方案中的版本不匹配.

I got this for ages, all I did was upgrade the nuget packages for Mvc and it fixed it. I suspect that I had a mismatch of versions in the solution.

Update-Package Microsoft.AspNet.Mvc -Version 5.2.3

版本部分是可选的,但它应该意味着所有项目都获得相同的版本.

The version part is optional, but it should mean that all projects get the same version.

这篇关于无法向 ASP.NET MVC 5 项目添加视图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆