Existing MVC project INCOMPATIBLE with VS 2022?

Bryan Valencia 181 Reputation points
2023-01-13T19:11:26.8866667+00:00

I have a MVC (NOT CORE) site that I have been maintaining for years.

Sometime a couple of years ago, some update made it IMPOSSIBLE to easily create Controllers and scaffold the pages. I have asked about THAT before. [https://www.youtube.com/watch?v=IwioQ1ynsPg

But now I downloaded my project in VS 2022 and the project WILL NOT EVEN LOAD!

Now maybe it's because I'm old, but I'm not in the mood to completely refactor all my projects every 4 years, so the simple question is: WHY is a project that works in 2019 INCOMPATIBLE with 2022?

Some completely inadequate answers I have received are:

  • Just refactor all your apps every 2 years
  • Just run 2019 forever.

So what's the deal? Is ASP.net out and Core the only way of the future? Because ASP.net used to create almost everything I need to get started automatically, while core requires me to watch 50 hours of YouTube videos every time. All the videos just say to type in 2000 lines of code from memory.

So Core is like a thousand times harder and more error-prone - how is it any better than the thing we're tossing in the bin?

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,254 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Bruce (SqlWork.com) 56,026 Reputation points
    2023-01-14T17:02:53.5933333+00:00

    Vs 2022 focus is on supporting the new features added to core and the core language changes. The default install does not include the old runtime support. Use the installer and add the workload.

    [https://learn.microsoft.com/en-us/visualstudio/install/modify-visual-studio?view=vs-2022

    note: many of the old framework designers (say edmx) are deprecated, and not included. If you need them you need the nuget package that installs them.

    0 comments No comments

  2. Lan Huang-MSFT 25,556 Reputation points Microsoft Vendor
    2023-01-16T07:32:55.56+00:00

    Hi @Bryan Valencia,

    You can try to migrate from VS2019 to VS2022.

    To migrate from VS 2019 to VS 2022, you can refer to this document:Project migration and upgrade reference for Visual Studio.

    It describes Visual Studio 2022 support for projects created in earlier versions.

    While we try to maintain compatibility with previous versions, there can be changes that aren't compatible with previous versions. When this happens, a newer version of Visual Studio won't load the project or offer a migration path. You might have to maintain that project in a previous version of Visual Studio. For more information about the project types that are supported in Visual Studio 2022, see the Platform Targeting and Compatibility page.

    Best regards,

    Lan Huang


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments