✅ 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
Evyr
Evyr2mo ago
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
Will Pittenger
Will Pittenger2mo ago
I tried that last night. Besides, the editor has it right. It's the compiler that's confused. Does it put stuff into .vs?
Evyr
Evyr2mo ago
BestChat.Platform.DataAndExt builds fine for me, try building it from the command line or another IDE
No description
Will Pittenger
Will Pittenger2mo ago
Can't afford Rider.
Evyr
Evyr2mo ago
VSCode? with the C# dev kit extension
Will Pittenger
Will Pittenger2mo ago
Why would you use it for C#?
Evyr
Evyr2mo ago
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
Will Pittenger
Will Pittenger2mo ago
?!?!?!? It vanished when I tried a full rebuild. Should've thought of that last night.
Want results from more Discord servers?
Add your server