Skip to content
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

Can't compile due to private NuGet feed #45

Closed
patriksvensson opened this issue Jul 13, 2022 · 5 comments · Fixed by #86
Closed

Can't compile due to private NuGet feed #45

patriksvensson opened this issue Jul 13, 2022 · 5 comments · Fixed by #86
Assignees

Comments

@patriksvensson
Copy link

When doing a package restore, I see a lot of 401 responses from some package source that's in use.
Any idea what I should do to be able to compile this?

C:\Program Files\dotnet\sdk\3.1.421\NuGet.targets(128,5): error : Response status code does not indicate success: 401 (Unauthorized - TF400813: Resource not available for anonymous access. Client authentication required. (DevOps Activity ID: 9C792FB8-970D-431E-9CB6-887C3CD827C8)). [REDACTED\microsoft\sbom-tool\Microsoft.Sbom.sln]
@aasim
Copy link
Member

aasim commented Jul 13, 2022

We don't have any private nuget feed in our code, at the end of the logs, it might show what feeds were used for resolution, can you paste that log please?

@HowardvanRooijen
Copy link

Isn't the nuget.config in the repo root pointing to a private package feed?

@patriksvensson
Copy link
Author

@HowardvanRooijen Yes! Removing the nuget.config makes it compile.

@aasim
Copy link
Member

aasim commented Jul 14, 2022

The feed mentioned in the nuget.config is a public feed, and it doesn't need authentication, but it might be missing some packages that your specific build environment requires. We are in the process of moving all our required packages to nuget.org after which this public feed won't be required.

Can you please send me your build environment and .net sdk versions and I will make sure that all those packages are there in the public feed to unblock you all.

@patriksvensson @HowardvanRooijen

@aasim aasim self-assigned this Jul 19, 2022
@aasim aasim linked a pull request Jul 29, 2022 that will close this issue
@aasim aasim closed this as completed in #86 Jul 29, 2022
@patriksvensson
Copy link
Author

Not sure why you closed this, to be honest. The problem is the Nuget.config in the root (which you should remove). I have all the required SDK:s to build this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants