In Visual Studio 2017 something unexpected happened when I was working. I was editing razor view (nothing special, just normal editing - I've copy pasted small chunk of text) and all the sudden I've got this message:
I've tried to restart visual studio, delete suo file, delete my temporary folder... now I can not work inside this particular view. If I try to change anything in this .cshtml I got message above or this message:
What is this? I don't recall seeing this in previous versions of visual studio. How to avoid this and proceed with work?
I got this in VS 2019 and just needed to restart VS.
I found an issue and they claim the issue was fixed in the new version. So I updated, but the issue still occurred, maybe because it was triggered in the old version.
Clean/rebuild didn't work. What I ended up doing after updating (I don't know if all steps are necessary, but this worked for me):
Then it was solved
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With