-
-
Notifications
You must be signed in to change notification settings - Fork 986
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not able to run a project referencing to private nuget package #1358
Comments
I am also experiencing this exact issue |
I won't have time to take a look at this in the near future. It would be great if you could run some troubleshooting described here: https://benchmarkdotnet.org/articles/guides/troubleshooting.html It's really strange that BDN fails, as all it does is generating a new project that references the project with benchmarks and running |
I have the same problem. I'm trying to run BDN on azure pipelines but the main project has a reference to a package from a private source. |
Same here. Only happend on Linux and use sudo command. |
Yes I was able to solve the problem by disabling the private sources (dotnet nuget disable [sourceName]) right before running BDN. But I get the same warning. |
I'm also suffering from this issue. It is like the dotnet restore executed it is not using the nuget.config (in which the credentials are defined) to perform the nuget restore. I tried to copy inside my BDN project the Nuget.Config but no luck so far. I will take a lot to the code to see if I find a way to fix it |
Ok I have found a way to avoid this error and it is simple. |
@jrodrigv thanks for sharing! |
Is @jrodrigv workaround suffice or BenchmarkDotNet team is looking for a solution? Or maybe documentation? Please let me know so I can grab this issue to try fixing it. |
@JobaDiniz, Thank you for your interest in this issue and for offering your help. I believe we should start with a stable repro for this problem. I just tried to reproduce it myself with BenchmarkDotNet v0.13.5, but everything works fine out of the box. Since BenchmarkDotNet creates an autogenerated project in a subfolder of the original project, it inherits all the relevant NuGet.Config files with all the declared credentials. @kesiyaabraham @frankhaugen @eginsjd @boblaw99 @jrodrigv If the issue is still relevant for you, we would appreciate any additional details on how you configure your benchmarks. |
I'm also getting this issue. I've tried @jrodrigv's workaround but it doesn't help. Rebuilding the benchmark project fixes it, but I gotta do it pretty often, it's a bit annoying. |
@amazingalek Can you please share how to reproduce? |
Simple honoring |
I don't think we can do that reliably. We tried a similar thing with |
The issue was fixed for me after installing this: https://github.com/Microsoft/artifacts-credprovider |
I have a project which has a dependency on Azure functions, class libraries and private NuGet packages.
I am trying to benchmark a method inside a service class. But I am getting the below error
I am not sure why this error is happening as we are taking nuget packages from cache when running a project.
Please let me know if you need more information on the project or error.
The text was updated successfully, but these errors were encountered: