This question already has an answer here:
- Disabling OBSOLETE error in C# 3 answers
I use:
[Obsolete("Use AnotherMethod() insted.", false)]
2nd parameter is false
but Visual Studio shows Warning as Error for every obsolete method call preventing project from compilation. How to make VS mark these calls as Warning not Error?
On the obsolete method define:
then go to project properties, under build, in suppress warning type type 0618, Now it will ignore that particular method and project will compile