I opened a different issue, but it turned out to be a red herring. It's a different problem altogether. I'm not sure why this is happening, and can't seem to track it down.
The problem is that if you install NuGetPowerTools from nuget package, the .nuget folder is created upon package install. This causes a problem when you Enable-PackageBuild because the .nuget folder already exists (but doesn't contain the dependent files like nuget.exe), so Ensure-NuGetBuild does not download the Nuget.Build (and consequently, the dependent Nuget.CommandLine).
If you delete the .nuget folder, then it will correctly re-create it, and download the dependencies. But because the .nuget folder is created on package install, this causes building to fail after the package is installed.
I can't figure out why the .nuget folder is being created on package install. The only weirdnss is that there's a packages.config file created inside the .nuget folder that has NuGetPowerTools listed in it. It's like installing the package causes the packages.config file to be installed into the .nuget folder. I can't seem to figure out where or how this might occur.
I opened a different issue, but it turned out to be a red herring. It's a different problem altogether. I'm not sure why this is happening, and can't seem to track it down.
The problem is that if you install NuGetPowerTools from nuget package, the .nuget folder is created upon package install. This causes a problem when you Enable-PackageBuild because the .nuget folder already exists (but doesn't contain the dependent files like nuget.exe), so Ensure-NuGetBuild does not download the Nuget.Build (and consequently, the dependent Nuget.CommandLine).
If you delete the .nuget folder, then it will correctly re-create it, and download the dependencies. But because the .nuget folder is created on package install, this causes building to fail after the package is installed.
I can't figure out why the .nuget folder is being created on package install. The only weirdnss is that there's a packages.config file created inside the .nuget folder that has NuGetPowerTools listed in it. It's like installing the package causes the packages.config file to be installed into the .nuget folder. I can't seem to figure out where or how this might occur.