VS 2022 Ignores new form added into the project

Ben Junior 11 Reputation points
2024-07-23T17:18:47.86+00:00

Using VS2022 v 17.10.4 When I add a new component into the project , VS ignores its existence. I have to close VS, delete the obj and the bin folders, reopen VS, clear and rebuild the solution and it works for awhile until it happens again. In the picture below, it shows that it does not detect the error in the form. It compiles and run. Depending on what part of the project I am working on, it can take me a lot of time to figure that the problem is in this newly added form where the added context is being ignored by VS

User's image

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,549 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,029 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Ben Junior 11 Reputation points
    2024-07-23T20:03:09.4833333+00:00

    I just found in another post to delete the component and then pasting it again. I tried and it works.

    1 person found this answer helpful.
    0 comments No comments

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.