ASP.NET MVC 4打破了ASP.NET MVC 3项目 [英] ASP.NET MVC 4 breaks ASP.NET MVC 3 projects

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

问题描述

在安装ASP.NET MVC 4开发preVIEW后,我不再能打开MVC 3项目,并出现以下错误信息:

 项目类型不受此安装支持。

< ProjectTypeGuids> 在我的MVC 3的.csproj文件看起来正确的:

<$p$p><$c$c><ProjectTypeGuids>{E53F8FEA-EAE0-44A6-8774-FFD645390401};{349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids>

这是在MVC 4开发preVIEW一个错误,或者是缺少的东西从我的Visual Studio 2010中安装?如何解决这个问题呢?我应该回滚我的MVC 4安装?

我曾尝试运行 devenv的/ ResetSkipPkgs 和安装MVC 3工具更新,但没有成功。


解决方案

如果你想更新你的项目MVC4,并在Visual Studio中打开它们的方式,那么

该解决方案是从

改变项目类型的GUID

  {E53F8FEA-EAE0-44A6-8774-FFD645390401}

  {E3E379DF-F4C6-4180-9B81-6769533ABE47}

在文件的csproj,在安装mvc4视觉工作室包后。

After installing the ASP.NET MVC 4 Developer Preview, I can no longer open MVC 3 projects, with the following error message:

The project type is not supported by this installation.

<ProjectTypeGuids> in my MVC 3 .csproj file looks right:

<ProjectTypeGuids>{E53F8FEA-EAE0-44A6-8774-FFD645390401};{349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids>

Is this a bug in the MVC 4 developer preview, or is something missing from my Visual Studio 2010 install? And how do I solve it? Should I rollback my MVC 4 install?

I have tried running devenv /ResetSkipPkgs and installed MVC 3 Tools Update, to no avail.

解决方案

"" If you want to update your projects to MVC4, and open them as such in the visual studio, then ""

The solution is to change the projectType guids from

{E53F8FEA-EAE0-44A6-8774-FFD645390401}

to

{E3E379DF-F4C6-4180-9B81-6769533ABE47}

in the csproj file, after you install the mvc4 visual studio package.

这篇关于ASP.NET MVC 4打破了ASP.NET MVC 3项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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