asp.net-mvc VS2010 上的 MVC 项目错误:此安装不支持该项目类型
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/8563325/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
MVC project on VS2010 error : The project type is not supported by this installation
提问by Neo
I'm trying to open MVC projectusing VS2010.
I'm opening this project from TFS serverbut I'm failed to open it
and getting error :
The project type is not supported by this installation.
我正在尝试MVC project使用VS2010. 我正在打开这个项目,TFS server但我无法打开它并出现错误:
The project type is not supported by this installation.
please help.
请帮忙。
回答by Sachin Kainth
You basically don't have something installed. That's why you get this error. I am very sure that you need to install the VS MVC project type - either MVC 2 or MVC 3. Use The Web Plaform Installer to install. The web platform installer can be found here: http://www.microsoft.com/web/downloads/platform.aspx. Once you have installed it (it is only 2MB) you need to search for "MVC", install the MVC 2 and MVC 3 project templates.
您基本上没有安装任何东西。这就是您收到此错误的原因。我非常确定您需要安装 VS MVC 项目类型 - MVC 2 或 MVC 3。使用 Web Plaform 安装程序进行安装。可以在此处找到 Web 平台安装程序:http: //www.microsoft.com/web/downloads/platform.aspx。安装后(只有 2MB),您需要搜索“MVC”,安装 MVC 2 和 MVC 3 项目模板。
回答by Jorrit Schippers
I got this error when I forgot to select the Web Developer feature in the Visual Studio setup. Unfortunately, the error you mentioned is the only error you get when Visual Studio 2010 is installed without this feature. You can install the Web Developer feature using the Windows control panel.
当我忘记在 Visual Studio 设置中选择 Web Developer 功能时出现此错误。不幸的是,您提到的错误是在没有此功能的情况下安装 Visual Studio 2010 时遇到的唯一错误。您可以使用 Windows 控制面板安装 Web Developer 功能。
By popular demand (7+ and counting), I'm placing part of CodingWithSpike's comment here. Specifically, the procedure to explicitly add Visual Web Designerto VS install.
根据大众需求(7+ 和计数),我将部分CodingWithSpike评论放在这里。具体来说,显式添加Visual Web Designer到 VS 安装的程序。
- open Control Panel
- select
Programs and Features(orAdd/Remove Programs) - choose
Visual Studio - click "Uninstall/Change"
- this opens the VS installer in maintenance mode.
- Click
"Next"once - Click
"Add or Remove Features" - Checkbox
"Visual Web Designer" - click
Updatebutton. - Enjoy having a working product!
- 打开控制面板
- 选择
Programs and Features(或Add/Remove Programs) - 选择
Visual Studio - 单击“卸载/更改”
- 这将在维护模式下打开 VS 安装程序。
- 单击
"Next"一次 - 点击
"Add or Remove Features" - 复选框
"Visual Web Designer" - 单击
Update按钮。 - 享受有工作的产品!
回答by RickAndMSFT
Edit the project.csproj file and look at the <ProjectTypeGuids>{E53F8FEA-EAE0-44A6-8774-FFD645390401};{349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids>
The GUIDS above includes MVC 3 Tools Update. That's a good guess of what you are missing. You can get MVC 3/TU from http://www.asp.net/mvc/mvc3BTW, that install includes VS2010 SP1 which is required for the TU edition.
编辑 project.csproj 文件并查看<ProjectTypeGuids>{E53F8FEA-EAE0-44A6-8774-FFD645390401};{349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids>
上面的 GUIDS 包括 MVC 3 工具更新。这是对你缺少什么的一个很好的猜测。您可以从http://www.asp.net/mvc/mvc3BTW获得 MVC 3/TU ,该安装包括 TU 版本所需的 VS2010 SP1。
回答by Giles Roberts
If you've installed Visual Studio 2010 after Visual Studio Web Dev Express and MVC4, Visual Studio 2010 doesn't seem to pick up the MVC 4 templates. Running the MVC 4 installer again via the Web Platform Installer doesn't fix it. Repairing the MVC 4 installation fixed it in my case:
如果您在 Visual Studio Web Dev Express 和 MVC4 之后安装了 Visual Studio 2010,Visual Studio 2010 似乎不会选择 MVC 4 模板。通过 Web 平台安装程序再次运行 MVC 4 安装程序并不能修复它。在我的情况下,修复 MVC 4 安装修复了它:
- Under Control Panel, choose Programs/Uninstall a program.
- Find Microsoft ASP.NET MVC 4 and double-click it.
- The Microsoft ASP.NET MVC 4 Setup prompt will appear. Choose Repair.
- 在控制面板下,选择程序/卸载程序。
- 找到 Microsoft ASP.NET MVC 4 并双击它。
- 将出现 Microsoft ASP.NET MVC 4 安装提示。选择修复。
Visual Studio 2010 Express to Pro, ASP.NET MVC 4 installed but not an option?
回答by Serenefinder
in my case, i had opened my VS2010 solution, in vs2012, i was getting the project type is not supported, tried re installing mvc3 as was suggested, cancelled re installation, then i had the issue i couldn't open the project in VS2010 anymore. then tried to re install mcv3 again. solution was, uninstall mcv3, uninstall mcv4, then reinstall mcv3, then i could reopen my project in VS2010 . hope this helps someone!
就我而言,我已经打开了我的 VS2010 解决方案,在 vs2012 中,我得到了不支持的项目类型,尝试按照建议重新安装 mvc3,取消重新安装,然后我遇到了无法在 VS2010 中打开项目的问题了。然后再次尝试重新安装 mcv3。解决方案是,卸载 mcv3,卸载 mcv4,然后重新安装 mcv3,然后我可以在 VS2010 中重新打开我的项目。希望这有助于某人!

