2012年开放项目2012年Visual Studio for MVC给出了错误

时间:2023-01-17 10:55:03

I am getting an error when trying to open a MVC project in Visual Studio 2012. My team is running on 2013 that have been working on it, and I am waiting to be upgraded to 2013, but am trying to get some work done until then. When I open the project, it says it is missing some required Web components needed to run in Visual Studio. "ASP.NET Web pages with Razor 3.0.0.0". So I tried to do a NuGet install for AspNetMVC and did not work. I can open the project and what not, but the features such as adding a new View or Controller are not there. Do I have to wait until I am upgraded to 2013, or am I missing something? Thanks in advance.

尝试在Visual Studio 2012中打开MVC项目时出现错误。我的团队正在运行2013年,我们正在等待升级到2013年,但我正在努力完成一些工作直到那时。当我打开项目时,它说它缺少在Visual Studio中运行所需的一些必需的Web组件。 “使用Razor 3.0.0.0的ASP.NET网页”。所以我尝试为AspNetMVC进行NuGet安装并且无法正常工作。我可以打开项目,但没有,但添加新视图或控制器等功能不存在。我是否必须等到升级到2013年,或者我错过了什么?提前致谢。

2 个解决方案

#1


0  

Had to re-install WebPages package with NuGet manager. I have no idea why it was jacked, but it was and fixed the problem. Thanks @levelnis.

不得不用NuGet管理器重新安装WebPages包。我不知道它为什么被顶起,但它确实解决了问题。谢谢@levelnis。

#2


0  

I had the same issue and had to update my NuGet package manager to the newest version in order to download the missing / corrupted package.

我有同样的问题,不得不将我的NuGet包管理器更新到最新版本,以便下载丢失/损坏的包。

#1


0  

Had to re-install WebPages package with NuGet manager. I have no idea why it was jacked, but it was and fixed the problem. Thanks @levelnis.

不得不用NuGet管理器重新安装WebPages包。我不知道它为什么被顶起,但它确实解决了问题。谢谢@levelnis。

#2


0  

I had the same issue and had to update my NuGet package manager to the newest version in order to download the missing / corrupted package.

我有同样的问题,不得不将我的NuGet包管理器更新到最新版本,以便下载丢失/损坏的包。