✅ Mystery errors that appear in build output but not the editor
I'm rather puzzled why the C# compiler reports these issues. They all appear to be bogus. No errors are listed in the C# editor. Some of the identifiers the compilers failed to find were classes that the C# editor not only found, but marked as classes with syntax highlighting. It doesn't report any errors there.
Does anyone have any ideas what's going on? I just checked code into https://github.com/ChatZilla-Replacement-Project/BestChat/tree/AvaloniaBrokenAXAML.
8 Replies
Maybe try removing the hidden .vs folder in the solution directory? I've heard of visual studio breaking sometimes because of cached data in that folder
I tried that last night.
Besides, the editor has it right. It's the compiler that's confused. Does it put stuff into .vs?
BestChat.Platform.DataAndExt builds fine for me, try building it from the command line or another IDE
Can't afford Rider.
VSCode?
with the C# dev kit extension
Why would you use it for C#?
I only use it in situations I can't use regular Vs
try running dotnet build through cmd in the project's directory, see if it throws the same errors
?!?!?!? It vanished when I tried a full rebuild. Should've thought of that last night.