I am building a web project in ASP.NET using Visual Studio 2022. So far, there have been no similar issues, but after moving a .css file from one folder to another my project has now flagged every single class and function definition within every namespace as an ambiguous definition. I looked further and the definitions appear to be in conflict with themselves.
Removing the namespace definition fixes the error, but is not a good solution. I have tried deleting the .vs, obj, and bin folders, which did not solve the issue. I have tried to check the .csproj file to ensure that there are no redundant references in it, but I'm fairly certain that there are none (though I could be wrong). Another piece of advice was to perform a feature search to restart Omnisharp, but there is no result to that search.
I'm at a loss for what could possibly be wrong here, there are lots of forum posts on the internet about this in the past, but all of the solutions that I've found boiled down to what I've attempted above, and none have solved the issue on my machine. What could be causing the issue?