ASP.NET MVC 4 project not recognized in Visual Studio 2017 RC

I have an old ASP.NET MVC 4 project in our solution. I just installed Visual Studio 2017 RC Community Edition (VisualStudio / public.d15rel / 15.0.26020.0). We have successfully used VS2015.

When I load the solution into VS2017RC, I get an error:

The application which this project type is based on was not found. 

I installed ASP.NET MVC 4 after installing VS2017RC, but this did not help.

I plan to upgrade it to a newer version of ASP.NET MVC, but I hope to use VS2017 on average.

+5
source share
3 answers

RC is a "candidate for release"; it may have known problems until the full version is ready. Your problem is one of them.

MVC4 projects are not supported

You can keep abreast of release notes .

+3
source
  • Open the .csproj file in a text editor
  • Find code (may vary):
    <ProjectTypeGuids> {E3E379DF-F4C6-4180-9B81-6769533ABE47}; {349c5851-65df-11da-9384-00065b846f21}; {fae04ec0-301f-11d3-bf4b-00c04f79efbc} </ProjectTypeGuids>

  • Delete the section {E3E379DF-F4C6-4180-9B81-6769533ABE47};

  • Save the file and reopen the solution.

Not all MVC4 attributes (fe Viewbag) are recognized in Views. But at least you can open and run the project until the patch is released.

+5
source

They say this is fixed, awaiting release (for now).

Here's the UserVoice ticket: https://developercommunity.visualstudio.com/content/problem/2865/cannot-load-mvc4-web-project-in-vs-2017-rc.html

+1
source

Source: https://habr.com/ru/post/1263064/


All Articles