ASP.NET MVC 4打破了ASP.NET MVC 3项目

编程入门 行业动态 更新时间:2024-10-28 02:34:07
本文介绍了ASP.NET MVC 4打破了ASP.NET MVC 3项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

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

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

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

<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项目

本文发布于:2023-11-05 21:29:23,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1561907.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:项目   打破了   ASP   NET   MVC

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!