I am using the Microsoft TFS API and one of the properties on one of the interfaces has been marked as Obsolete and it instructs me to use a different property. Unfortunate
Build failing due to [Obsolete]?
This would only occur if "Treat Warnings As Errors" is enabled, and there is a method with the [Obsolete] attribute.
Add
in the .csproj
file (repeat for all sections):
true
4
612,618
true
full
false
bin\Debug\
DEBUG;TRACE
prompt
If dealing with many .csproj files
, see Appendix A: Notepad++ for search and replace
.
Note: This method is not recommended, because it hides the warnings for methods marked [Obsolete]. We still want to see a list of all calls to obsolete methods so we can upgrade them.
Use #pragma warning disable 612,618
Note: This method is not recommended, because it hides the warnings for methods marked [Obsolete]. We still want to see a list of all calls to obsolete methods so we can upgrade them.
Edit the project (repeat for all sections):
Note: This method is not recommended, because it hides the warnings for methods marked [Obsolete]. We still want to see a list of all calls to obsolete methods so we can upgrade them.
Manually edit your .csproj to disable warnings for specific errors. Add the tag
(repeat for all sections):
612,618
true
bin\x64\Debug\
DEBUG;TRACE
true
full
x64
prompt
Have a lot of files? No problem!
Open all .csproj
files in NotePad++, then:
true
true \n\t612,618