I have been working on an ASP.NET Core MVC / C# project (Visual Studio 2022) for the last 2 months. I have a class in this project which contains some properties. The name of the property was in capital letters and it was working fine.
Today I changed the name of the property from capital letters to lowercase letters of that class – something like this:
public string STUD_NAME { get; set; }
to
public string stud_name { get; set; }
After changing this, when I tried to run the app, it shows 2 errors:
The source file ~ProjectNameobjDebugnet6.0AssemblyInfo.cs
and
~ProjectNameobjDebugnet6.0RazorAssemblyInfo.cs – could not find these files.
But when I checked in the specific obj
folder, these files are there.
But in the Solution Explorer, I couldn’t find these 2 files anywhere including the Properties
folder.
I removed this obj
folder and recreated it by rebuilding the project. Still it shows the same errors. I cleaned the project and solution and rebuild it. Still shows same error.
How to solve this issue?