ASP.NET MVC project “not supported by this installation”

被刻印的时光 ゝ 提交于 2019-11-28 21:12:20

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:

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.

  • Thank you, this allowed me to finally migrate my 2010 solution to 2012 which happened to on a different machine than it was originally created on. 2 years of looking finally resolved my issue. – Michael Jan 4 '17 at 1:58
16

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**};{349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids>

and I can see the project hurray!

  • +1 -- too many other related posts. This one worked in VS 2008 for me with MVC2. – Kurt Johnson May 24 '10 at 17:26
  • Do you know what 349c5851-65df-11da-9384-00065b846f21 (the second one) represents? I've worked out that that's the one I'm missing from my machine, but I have no idea what it is an what I should install to get this... – Flater May 24 '12 at 13:48
  • 1
    @Flater: Web Application (see here: mztools.com/articles/2008/mz2008017.aspx – Mike Cheel Sep 13 '12 at 18:11
  • This worked for me as well with VS 2008. Thanks. – ghost_mv May 15 '13 at 19:54
  • What is the Difference between {astrix astrix F85E285D-A4E0-4152-9332-AB1D724D3325 astrix astrix} and {F85E285D-A4E0-4152-9332-AB1D724D3325} – N.K Dec 1 '16 at 5:02
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!