dotnet / BenchmarkDotNet

Powerful .NET library for benchmarking
https://benchmarkdotnet.org
MIT License
10.24k stars 952 forks source link

Custom NuGet Feed Credentials #2586

Closed benwalpole closed 4 days ago

benwalpole commented 2 weeks ago

Hi,

We are attempting to use BenchmarkDotNet within a project that sources NuGet packages from an internal private feed.

When BenchmarkDotNet is doing a package restore as part of the its build it is getting an authentication error when trying to connect to this feed.

When BenchmarkDotNet launches which user is is running as? Is there a way to pass credentials for things like a NuGet feed into BenchmarkDotNet? Is it possible to instruct BenchmarkDotNet to not do a restore as part of its build process?

adamsitnik commented 4 days ago

Hi @benwalpole

This is a duplicate of https://github.com/dotnet/BenchmarkDotNet/issues/1358

You could follow the steps described here: https://github.com/dotnet/BenchmarkDotNet/issues/1358#issuecomment-715481163 and see if you can provide a fix