Update NuGet.Core to 2.7 and fixed regressions.