Visual Studio 2022 considering Desktop application as ASP.Net & generating errors

Simon 286 Reputation points
2024-04-02T23:56:19.5466667+00:00

I have developed a desktop application using Visual Studio 2022.

I then developed a web application ASP.net with Visual Studio 2022.

Now, whenever I launch the desktop application, VS considers it an ASP.net application, and is generating errors by the hundreds, as though it would be an ASP.net application.

Is there a way to separate a Microsoft Net.Framework 4.8.1 application from an ASP.Net application, so that they don't interfere with each other.

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,831 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,263 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,616 questions
{count} votes

2 additional answers

Sort by: Most helpful
  1. AgaveJoe 26,136 Reputation points
    2024-04-03T09:49:49.21+00:00

    Is there a way to separate a Microsoft Net.Framework 4.8.1 application from an ASP.Net application, so that they don't interfere with each other.

    In the project explorer windows, right click the project file you wish to remove and select "Remove".

    Remove or Delete an Item or Project

    1 person found this answer helpful.
    0 comments No comments

  2. Simon 286 Reputation points
    2024-04-04T12:33:44.4533333+00:00

    Bruce (SqlWork.com) • Follow53,986Reputation points

    it sounds like you have a custom VS plugin/designer that can not detect the project type

    thanks