updated nuget to support restoring via solution file and added the restore into the build scripts.
removed unused variable.