Almost every piece of .NET work I've done has involved a .sln
with multiple .csproj
s, with a tree of dependencies between the projects.
When I try to rebuild the whole .sln
, then and one of the early projects has a compiler error, then I get that compiler error, plus a whole heap of errors complaining that later projects can't compile because they can't find the earlier project's compiled dll. Well, no shit!
The specific error is:
Severity Code Description Project File Line Suppression State Error
CS0006 Metadata file 'C:\Work\ADH\ADH\MyParentProject.dll' could not be found MyChildProject C:\Work\ADH\ADH\MyChildProject\CSC 1 Active
I believe I could entirely suppress this error message, but I imagine there are scenarios in which that message occurs that AREN'T just "compilation visibly failed for an earlier project".
Is there some way to specifically suppress the error in that case (e.g. a setting for "if a project fails to compile, don't attempt to compile child projects / don't show their error messages / don't show THIS message, if the parent failed to compile"?