Updating from Nuget to NuGet (note the capital G). Also note that MsBuild is capital sensitive.
Cleaning up build.msbuild and adding execution conditions for the sub-steps of the different targets.