I can't seem to find the correct settings for my DevOps build pipeline to enable it to restore NuGet packages so that the build process will locate them.
The first issue which I have over come is that the default settings pointed the restore at my .sln file which caused it to print out:
Nothing to do. None of the projects in this solution specify any packages for NuGet to restore.
It's a Visual Studio 2017 website .sln file and doesn't contain information about NuGet and there is no .csproj which other answers have suggested.
I got round the issue by pointing it at the packages.config file. Now the restore process does locate the packages which are needed, but it doesn't seem to be putting them where the "Visual Studio Build" build process can find them.
Error CS0246: The type or namespace name 'Nest' could not be found (are you missing a using directive or an assembly reference?)
I have looked in the build process section, but I couldn't find anything useful as the only reference is marked with:
This option is deprecated. To restore NuGet packages, add a NuGet Tool Installer
Which is what I'm already attempting to do. I have tried moving the destination directory of the NuGet restore to bin
and other places, but it didn't make a difference.
Is there a step which I'm missing to move the files after they have been restored? Or a parameter I need to pass when it's building to tell it where the package files are?