Errors are not reported in Razor files
This issue has been moved from a ticket on Developer Community.
[severity:It's more difficult to complete my work] [regression] For some reason VS does not show any errors in razor files. They only show up on build.
Please review the attached recording.
Original Comments
Feedback Bot on 1/6/2025, 08:40 AM:
We have directed your feedback to the appropriate engineering team for further evaluation. The team will review the feedback and notify you about the next steps.
Simon Rossmann on 1/12/2025, 09:23 PM:
Started to see this happen to both vs22 and vs22prev on my Win10 dev machine, so i switched to a win11 VM where i did not have any problems for 2 weeks. Now, all of the sudden, i do not see errors on the win11 machine as well. This really ist not a great dev-experience now to be honest. Must happen to more than 2 ppl though!?
Feedback Bot on 1/15/2025, 06:51 AM:
This issue is currently being investigated. Our team will get back to you if either more information is needed, a workaround is available, or the issue is resolved.
@davidwengier this was reported back in january. Are we jhaving issues with razor errors now? If so, can likely be closed out.
Nothing is wrong with Razor. That report was a KeyNotFound exception in Roslyn, that was reproducible in plain .cs files too. See my comments on the AzDo ticket for info. No idea if it's still an issue, but I'll tell the Razor folks who were hitting it to report here if it is.