CS0234 The sort or namespace identify ‘MyClass’ doesn’t exist within the
namespace ‘MyProject’ (are you lacking an meeting reference?)
This can be a giant resolution that has existed for three years with about 15 tasks in. It simply began doing this although hasn’t been modified for months.
The tasks are C# Class Libraries, ASP.internet 4.6, ASP.internet Core 2.1 and internet purposes.
The one undertaking failing is a C# Class Library holding information entry code .internet 4.6 referenced by many of the different tasks.
I might put some code in right here to breed however I can not reproduce it in a brand new resolution.
I’ve Googled this error, nevertheless it comes up with quite a lot of outcomes explaining why this error occurs whenever you’d anticipate it to. However right here is appears to have spontaneously occurred.
This began on my desktop, I examined my laptop computer with the identical repo, builds high quality.
20 minutes later after just a few builds and nil code modifications it begins taking place on laptop computer too.
It’s saying it will probably’t discover a class – once I go to a file with the error the category identify is underlined (being returned from a technique) in purple like its lacking, then the purple goes away. So intellisense can discover the category, however the compiler cannot. I proper click on the category identify ‘go to definition’ it goes to the category definition within the different undertaking high quality.
All errors are with 1 undertaking. I’ve eliminated and re-added it to the answer, no assist. Then created a completely new undertaking and copied within the class .cs recordsdata – similar downside.
I’ve eliminated and re-added references to this undertaking in all of the others. Nothing. This undertaking references a Fashions undertaking, I eliminated and re-added that reference. No assist.
Any strategies on what may be inflicting this or different methods I can debug it to attempt to discover the problem?