Since I use CI integration, I cannot (and do not want to) put packages in the user's public folder. Instead, I want them to be restored inside the actual folder (think node_modules).
So, it is simple, I run dotnet restore --no-cache --packages Packages, and it works great. Packages are restored and they are in the correct folder.
However, when I run dotnet build -c Releaseor dotnet run -c Release, it cannot find packages.
/var/www/website/project.json(15,50): error NU1001: could not resolve the Microsoft.AspNetCore.Hosting> = 1.0.0 dependency.
So how do you make sure dotnet knows where to look for packages for this particular project?
This is what my folders look like where I execute commands.
bin
bundleconfig.json
NuGet.config
Packages
project.json
Properties
web.config
bower.json
Controllers
obj
Program.cs
project.lock.json
ViewsWeb.xproj