Avoid using deprecated classes when building for 2.0.
Avoid using deprecated classes when building for 2.0.

nant/nantcontrib,nant/nantcontrib,rmboggs/nantcontrib,rmboggs/nantcontrib,cgourlay/nantcontrib,dahmage/nantcontrib,cgourlay/nantcontrib,dahmage/nantcontrib,nant/nantcontrib,cgourlay/nantcontrib,dahmage/nantcontrib,rmboggs/nantcontrib