Persistent ghost errors

Kingsy

New member
Joined
Feb 28, 2025
Messages
2
Programming Experience
5-10
Hello Fellow Coders.

More than once I got ghost errors with .net razor pages.
I fix the error but the compiler and visual studio dont recognize the changes, and keep outputting the same error message.
Even If I completely empty a page the same error stays.
Rebuilding, cleaning or closing visual studio does not help.
The only fix I found is removing/renaming the .vs folder.
Does anyone recognize this behavior and/or found another solution?
Much thanks for all the help,

Kingsy
 
Are they true errors, or just warnings or recommendations from IntelliSense and/or the coding style linter?
 
I've seen the IntelliSense and linter things show up whenever I have a tab in the IDE open that has the particular file related to the warning or recommendation. If I close that tab, and then rebuild, I don't see the warning or recommendation anymore.
 
Its full on build errors, it wont let me compile or run my app.
I'm pretty sure I tried closing the window but I will try again.
I will also try building from the command line with visual studio closed, see if that solves it.
Thanks for the help, its not stopping me from developing but it can be demotivating.
 
Back
Top Bottom