On the obsolete method define:
#pragma warning disable 0618
[Obsolete("test",false)]
private void myMethod()
then go to project properties, under build, in suppress warning type type 0618, Now it will ignore that particular method and project will compile