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

Simon 466 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.

Developer technologies | Windows Forms
Developer technologies | Visual Studio | Other
Developer technologies | ASP.NET | Other
{count} votes

Accepted answer
  1. Bruce (SqlWork.com) 78,236 Reputation points Volunteer Moderator
    2024-04-03T21:05:15.9766667+00:00

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

    1 person found this answer helpful.
    0 comments No comments

2 additional answers

Sort by: Most helpful
  1. AgaveJoe 30,126 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 466 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


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.