Bin and Obj Are the Devil
Tuesday, June 19, 2018
the first in what is likely a series on cache invalidation being hard.
tl;dr - close Visual Studio and delete your obj/ and bin/ directories if your project isn’t building and giving cryptic errors.
Your project was working fine, but now all of a sudden it can’t find a reference whose location didn’t change. Or it won’t build because something is out of date. Or the version is incorrect.
Maybe your project is suddenly throwing errors like cannot find source file or xxx does not exist in namespace yyy. Or maybe System.String can't be found, or byte[] is not a valid type, or System.ValueTuple2 cannot be found.
…