How do I specify the local folder for nuget packages?

I have custom nuget packages. I copied them into local folder /projects/nuget and have specified it in the Nuget.config in the home/.nuget folder. but the rider is unable to pick and restore packages from the local folder. This is how my Nuget.config looks

 

<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" protocolVersion="3" />
<add key="local" value="/projects/nugets" />
</packageSources>
<config>
<add key="repositoryPath" value="/projects/nugets" />
<add key="globalPackagesFolder" value="/home/user/.nuget/packages" />
</config>
</configuration>

 

Please sign in to leave a comment.