You can specify custom feeds just for solution via nuget.config
file.
The key point is to provide credentials section packageSourceCredentials
like this:
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<add key="Local" value="http://localhost:9090/httpAuth/app/nuget/v1/FeedService.svc" />
</packageSources>
<activePackageSource>
<add key="Local" value="http://localhost:9090/httpAuth/app/nuget/v1/FeedService.svc" />
</activePackageSource>
<packageSourceCredentials>
<Local>
<Username>login</Username>
<Password>pa$$w0rd</Password>
</Local>
</packageSourceCredentials>
</configuration>
This config
file should be next to the sln
file in repository.