ASP。NET MVC项目“本安装不支持”

时间:2022-01-22 06:54:00

I can create new MVC projects and they work and run however trying to open an existing project is not working at all

我可以创建新的MVC项目,它们可以工作和运行,但是尝试打开一个现有的项目完全不能工作

I tried the following changing the project type to:

我尝试将项目类型改为:

<ProjectTypeGuids>{F85E285D-A4E0-4152-9332-AB1D724D3325};{349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids>

(this worked on migrating a project from Asp.Net MVC preview 1 to preview 2 BTW)

(这是为了从Asp移植一个项目。Net MVC预览1到预览2)

Changed the Reference to:

改变了参考:

<Reference Include="System.Web.Mvc, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
    <SpecificVersion>False</SpecificVersion>      
</Reference>

I tool this from a new project I created so i know that should be ok ( i even hardcoded the path to the same result)

我从我创建的一个新项目中使用这个工具,所以我知道应该没问题(我甚至硬编码了通向相同结果的路径)

Still i get the dreaded

我还是害怕

The project file '.....csproj' cannot be opened. The project type is not supported by this installation.

项目文件的.....csproj”不能打开。此安装不支持项目类型。

I also tried devenv /setup and installing the sp1 for visual studio

我还尝试了devenv /setup并为visual studio安装了sp1

the project i m trying to open is this one (a DevExpress sample of a grid working on ASP.NET MVC)

我正在尝试打开的项目是这个(一个开发ASP的网格的DevExpress示例)。NET MVC)

4 个解决方案

#1


18  

Just had a similar problem when taking an older MVC / Azure WebRole project into VS 2012 with MVC4. The trick was to edit the .CSPROJ like this:

当使用MVC4将旧的MVC / Azure WebRole项目带入VS 2012时,也遇到了类似的问题。技巧是这样编辑。csproj:

10c11
<     <ProjectTypeGuids>{F85E285D-A4E0-4152-9332-AB1D724D3325};{349c5851-65df-11
da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids>
---
>     <ProjectTypeGuids>{E3E379DF-F4C6-4180-9B81-6769533ABE47};{349c5851-65df-11
da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids>

i.e. change the first one from {F8... to {E3E3... (which is apparently MVC4). This has to be done outside of Visual Studio, in a text editor, and then open the solution and "Reload" the project that gave an error - this will trigger VS to migrate it to VS 2012.

即将第一个从{F8…{ E3E3……(这显然是MVC4)。这必须在Visual Studio之外,在一个文本编辑器中完成,然后打开解决方案并“重新加载”给出错误的项目——这将触发VS将其迁移到VS 2012。

#2


15  

ok the problem was too many changes, I unzipped the solution again and just changed the first parameter in the ProjectTypeGuids to {F85E285D-A4E0-4152-9332-AB1D724D3325} so it looks like

问题太大了,我重新解压解决方案,将ProjectTypeGuids中的第一个参数改为{F85E285D-A4E0-4152-9332-AB1D724D3325}

<ProjectTypeGuids>{**F85E285D-A4E0-4152-9332-AB1D724D3325**};{349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids>

and I can see the project hurray!

我可以看到项目万岁!

#3


8  

You need to install ASP.NET MVC 2.

您需要安装ASP。净MVC 2。

#4


0  

There is a really easy way to solve this.

有一个很简单的方法来解决这个问题。

Probably some of the dependencies are missing, and it is really hard to find out which one.

可能有些依赖项丢失了,很难找出哪个依赖项。

Go to

http://www.asp.net/downloads

http://www.asp.net/downloads

Download ASP.NET and WebTools for your version of Visual Studio

下载ASP。NET和WebTools为您的版本的Visual Studio

A web platform installer will come up, which will install all the required tools

将出现一个web平台安装程序,它将安装所有必需的工具

This solved my problem

这解决了我的问题

There is no need to go through the ProjectTypeGuids

没有必要通过这个项目

#1


18  

Just had a similar problem when taking an older MVC / Azure WebRole project into VS 2012 with MVC4. The trick was to edit the .CSPROJ like this:

当使用MVC4将旧的MVC / Azure WebRole项目带入VS 2012时,也遇到了类似的问题。技巧是这样编辑。csproj:

10c11
<     <ProjectTypeGuids>{F85E285D-A4E0-4152-9332-AB1D724D3325};{349c5851-65df-11
da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids>
---
>     <ProjectTypeGuids>{E3E379DF-F4C6-4180-9B81-6769533ABE47};{349c5851-65df-11
da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids>

i.e. change the first one from {F8... to {E3E3... (which is apparently MVC4). This has to be done outside of Visual Studio, in a text editor, and then open the solution and "Reload" the project that gave an error - this will trigger VS to migrate it to VS 2012.

即将第一个从{F8…{ E3E3……(这显然是MVC4)。这必须在Visual Studio之外,在一个文本编辑器中完成,然后打开解决方案并“重新加载”给出错误的项目——这将触发VS将其迁移到VS 2012。

#2


15  

ok the problem was too many changes, I unzipped the solution again and just changed the first parameter in the ProjectTypeGuids to {F85E285D-A4E0-4152-9332-AB1D724D3325} so it looks like

问题太大了,我重新解压解决方案,将ProjectTypeGuids中的第一个参数改为{F85E285D-A4E0-4152-9332-AB1D724D3325}

<ProjectTypeGuids>{**F85E285D-A4E0-4152-9332-AB1D724D3325**};{349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids>

and I can see the project hurray!

我可以看到项目万岁!

#3


8  

You need to install ASP.NET MVC 2.

您需要安装ASP。净MVC 2。

#4


0  

There is a really easy way to solve this.

有一个很简单的方法来解决这个问题。

Probably some of the dependencies are missing, and it is really hard to find out which one.

可能有些依赖项丢失了,很难找出哪个依赖项。

Go to

http://www.asp.net/downloads

http://www.asp.net/downloads

Download ASP.NET and WebTools for your version of Visual Studio

下载ASP。NET和WebTools为您的版本的Visual Studio

A web platform installer will come up, which will install all the required tools

将出现一个web平台安装程序,它将安装所有必需的工具

This solved my problem

这解决了我的问题

There is no need to go through the ProjectTypeGuids

没有必要通过这个项目