I want to mark a method as Obsolete, and also cause the compilation to fail if it is called from anywhere.
I came across a solution here How do I mark a method as Obsolete/Deprecated? .
an answer suggests this syntax, saying that the boolean modifier will achieve my wanted effect(failing compilation)
[Obsolete("Method1 is deprecated, please use Method2 instead.", true)]
However, while this worked on the same project; it didn't when calling the method from another project (i even had visual studio productivity power tools show an eror for it but compilation still succeeded)
is this by design? or is there a workaround?