asp.net-mvc “此安装不支持项目类型”错误
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/336235/
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
"the project type is not supported by this installation" error
提问by Krishna Kumar
I have installed VS 2008 SP1 on W2k3 OS. After I installed ASP.NET MVC beta and tried creating ASP.NET MVC type project I get the following error.
我已经在 W2k3 操作系统上安装了 VS 2008 SP1。在我安装 ASP.NET MVC beta 并尝试创建 ASP.NET MVC 类型的项目后,我收到以下错误。
"the project type is not supported by this installation"
“此安装不支持项目类型”
Let me know if you have fixed this issue.
如果你解决了这个问题,请告诉我。
回答by Vivek Ayer
I tried some of the solutions posted here but still no joy. Finally I replaced the ProjectTypeGuids to this one below in the project file and it loaded fine
我尝试了这里发布的一些解决方案,但仍然没有快乐。最后,我在项目文件中将 ProjectTypeGuids 替换为下面的这个,并且它加载得很好
<ProjectTypeGuids>{349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids>
<ProjectTypeGuids>{349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids>
回答by Rob Cooper
I came across something while having issues of my own.
我在遇到自己的问题时遇到了一些事情。
In short, try:
简而言之,尝试:
- Run the Visual Studio Command Prompt as Admin.
Execute:
devenv /setup
- 以管理员身份运行 Visual Studio 命令提示符。
执行:
devenv /setup
It then whirs away for a bit (VS2008 will not open), once the prompt returns fire up VS and all (may) be back to normal.
然后它会嗡嗡作响(VS2008 不会打开),一旦提示返回启动 VS 并且所有(可能)恢复正常。
I came across this when my MVC projects got messed up when trying to get the Entity Framework up and running :)
当我的 MVC 项目在尝试启动和运行实体框架时搞砸时,我遇到了这个问题:)
回答by John White
The problem is that MVC 2 is not completely backward compatible. Visual Studio cannot open MVC 1 apps without MVC 1 installed. So if you just install MVC 1, which can install together with MVC 2 you should be just fine. http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=53289097-73ce-43bf-b6a6-35e00103cb4b
问题在于 MVC 2 并不完全向后兼容。Visual Studio 无法在未安装 MVC 1 的情况下打开 MVC 1 应用程序。所以如果你只安装 MVC 1,它可以与 MVC 2 一起安装,你应该没问题。 http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=53289097-73ce-43bf-b6a6-35e00103cb4b
回答by Robin Minto
I had the same problem with MVC v1. Turns out that I hadn't installed the "Visual Web Developer" feature.
我在 MVC v1 中遇到了同样的问题。原来我没有安装“Visual Web Developer”功能。
This SO user had the same issue.
这个 SO 用户有同样的问题。
回答by Nick Knowlson
回答by Nick Knowlson
i installed visual web developer from the Visual studio 2008 installation dvd and that fixed the problem
我从 Visual Studio 2008 安装 DVD 安装了 Visual Web Developer 并解决了问题
回答by Nick Knowlson
Tried to install ASP.NET MVC 1.0. It works to me.
尝试安装 ASP.NET MVC 1.0。它对我有用。
回答by Nick Knowlson
ewalshe - same thing worked for me. I know this is an old post, just wanted to put this out there for anybody else. I had an existing solution in source control (Vault), and wanted to set up my home computer for development. I installed Visual Studio 2008 at home without the following options:
ewalshe - 同样的事情对我有用。我知道这是一个旧帖子,只是想把它发布给其他人。我在源代码控制 (Vault) 中有一个现有的解决方案,并且想要设置我的家用计算机以进行开发。我在家里安装了 Visual Studio 2008,没有以下选项:
C++
Visual Basic
Visual Web Developer
C++
Visual Basic
Visual Web 开发人员
When I pulled down the solution from source control, all projects loaded EXCEPT my web project - VS simply did not recognize it. A fresh installation using the default options and a restart fixed my problem. I do not have the time nor the desire to really figure out which of the above is necessary for Web Application projects to work... maybe somebody will chime in.
当我从源代码管理中提取解决方案时,除了我的 Web 项目之外,所有项目都加载了 - VS 根本无法识别它。使用默认选项的全新安装和重新启动解决了我的问题。我没有时间也不想真正弄清楚上述哪些是 Web 应用程序项目工作所必需的……也许有人会插话。
~ryan
~瑞安
回答by ewalshe
I was getting the same error and found this question in a Google search for the answer. Most answers unearthed in the search suggested that old project types were being moved onto a machine with a different version of Visual Studio installed. None of which applied to me.
我遇到了同样的错误,并在 Google 搜索中找到了这个问题的答案。在搜索中发现的大多数答案表明,旧的项目类型被移到安装了不同版本的 Visual Studio 的机器上。没有一个适用于我。
I've got VS2008 installed on a machine (running 64bit Vista) at work and recently installed the ASP.NET MVC beta, without any problems.
我在工作的机器上安装了 VS2008(运行 64 位 Vista),最近安装了 ASP.NET MVC 测试版,没有任何问题。
I wanted to replicate my work environment on my Mac, so I installed VS2008 with the ASP.NET MVC beta into a WinXp installation running within a Parallels VM. When I went to create a project with the ASP.NET MVC Web Application template I got the "the project type is not supported by this installation" error.
我想在我的 Mac 上复制我的工作环境,所以我将带有 ASP.NET MVC 测试版的 VS2008 安装到在 Parallels VM 中运行的 WinXp 安装中。当我使用 ASP.NET MVC Web 应用程序模板创建项目时,出现“此安装不支持项目类型”错误。
I finally got things working by yet another reinstall of VS2008 (a clean install, not a repair). This time I choose the default installation options, rather than customising things as I usually do. I normally deselect VB, the mobile device, office and other non C# development stuff - I don't have much free space on my Mac.
我终于通过再次重新安装 VS2008(全新安装,而不是修复)使事情正常进行。这次我选择了默认安装选项,而不是像往常一样自定义。我通常取消选择 VB、移动设备、办公室和其他非 C# 开发的东西 - 我的 Mac 上没有太多可用空间。
After the clean install of VS2008 I did a windows update, installed VS2008 SP1 and finally installed the ASP.NET MVC beta.
在全新安装 VS2008 之后,我进行了 Windows 更新,安装了 VS2008 SP1,最后安装了 ASP.NET MVC beta。
It seems that when I customised the VS2008 install, I deselected something essential for the correct operation of the MVC beta. I don't have clue what that something is, I'm just happy that after three days I can play the the MVC stuff at home.
似乎当我自定义 VS2008 安装时,我取消了对 MVC beta 的正确操作必不可少的东西。我不知道那是什么东西,我很高兴三天后我可以在家玩 MVC 的东西。
Its been a month since you posted the question. Have you made any progress since?
自从您发布问题以来已经一个月了。从那以后你有什么进展吗?
回答by Jon Galloway
This is sometimes caused by running a version of Visual Studio which doesn't support MSTest.
这有时是由运行不支持 MSTest 的 Visual Studio 版本引起的。

