question

AshishGupta-0170 avatar image
0 Votes"
AshishGupta-0170 asked lextm commented

Reference nuget package from JFrog artifactory in Visual Studio .Net Project

Jfrog artifactory binding throwing "Failed to load" error while trying to pull nuget package in Visual Studio 2017. But I can be able to download same through browser and curl command on GIT bash prompt. Please suggest what I need to do to reference and download it in Visual studio to utilize in any .Net project.

Thanks,
Ashish

dotnet-csharpdotnet-aspnet-core-generaldotnet-standarddotnet-package-management
· 11
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @AshishGupta-0170 , did you get NuGet package by right-clicking the project > Manage NuGet Packages… > Browse > Install? Is there any detailed error message except "Failed to load"?

0 Votes 0 ·

Hi @AshishGupta-0170 , is the package source set to nuget.org(https://www.nuget.org/api/v2/), in Tools > Options > NuGet Package Manager > Package Sources? And did you choose nuget.org in NuGet Package Manager?

154374-image.png

154320-image.png


0 Votes 0 ·
image.png (36.5 KiB)
image.png (18.6 KiB)
lextm avatar image lextm AshishGupta-0170 ·

When this issue can be isolated to this level (404 on a specific Artifactory URL), you shouldn't bother anyone here to assist but should go straight to Artifactory technical support to learn how to fix that. It might be a simple configuration issue, but only the vendor of Artifactory knows the best.

0 Votes 0 ·

Hi @TianyuSun-MSFT , In current scenario, I am trying to reference JFrog artifactory rather than nuget.org to get the required package. I am following all the steps mentioned in "Set Me Up" dialog box on JFrog artifactory portal for adding package source reference in Visual Studio. I can be able to view all package through browser but in Visual studio throwing errors. Please guide.

0 Votes 0 ·

Hi @AshishGupta-0170 , would you mind sharing me the steps which you are following? I am willing to try it on my side and figure out how to fix this issue.

0 Votes 0 ·
Show more comments

0 Answers