tags:

views:

17

answers:

1

I have upgraded a visual basic 2005 project to visual basic 2010 (.net framework 4.0). I want to list all obsolete functions used in this project in order to change it with newer ones.

How can I treat obsolete functions warnings as errors in visual basic 2010 ms-build?

A: 

User the Warnings As Errors switch of the vbc (Visual Basic compiler). You can use it via the Vbc task in MSBuild or set it globally via the TreatWarningsAsErrors parameter in your script.

mfloryan