I have a /.nuget directory at the root of my source tree containing the standard nuget.exe and target. When installing OctoPack, it sets the $(SolutionDir) to …/ which later is used to resolve the .nuget directory. However, my projects are often nested and the .nuget folder isn’t at that relative path.
Manually updating the $(SolutionDir) to the proper relative path corrects the issue but this seems unnecessary. Shouldn’t the OctoPack installer walk the parent directories to locate the .nuget directory similar to to how the nuget.config is resolved? Am I missing something here?
Thanks for getting in touch and for the screenshot. From the screenshot, $(SolutionDir) is being used to resolve NuGet.targets - this has nothing to do with OctoPack, this is used by NuGet package restore as far as we know.
Hope that helps, let me know if I am missing something.
Turns out, this was the first NuGet package installed on several of my projects. Since OctoPack was the only change I made, I foolishly assumed that it added the reference to the Nuget.targets as well.
Excellent observation. Thanks Paul, great product!