NuGet Error NU5009

Cannot find version of msbuild.

Issue

NuGet pack operation cannot find msbuild.

Solution

Please pass the -MsBuildPath to NuGet pack command.