Updated labs to inlcude NuGet package config and updated code to stop using deprecated methods and objects.