VS 2022 Ignores new form added into the project

Ben Junior 6 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,499 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,877 questions
{count} votes