In the deprecated method, define:
#pragma warning disable 0618 [Obsolete("test",false)] private void myMethod()
then go to the project properties, in the build process, in suppressing the type of warning type 0618. Now it will ignore that specific method and the project will compile
source share