Accessing url to download/install Nuget package

salilsingh-9961 351 Reputation points
2023-07-11T17:54:49.0733333+00:00

Hi Team,

I am doing my .Net development on a machine which is not having access to open internet. In case I need to access any open internet url, I need to get that url added in the list of accessible urls to access it. I am unable to install any nuget package in my ASP.Net core web api project, If I need to install a nuget package(ex - Microsoft.EntityFrameworkCore), which url I need to make accessible from that machine.

Thanks,

Salil

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,443 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Tianyu Sun-MSFT 33,271 Reputation points Microsoft Vendor
    2023-07-12T03:13:33.6166667+00:00

    Hello @salilsingh-9961,

    Welcome to Microsoft Q&A forum.

    I think the URL you mean is package source. The default package sources are

    nuget.org => https://api.nuget.org/v3/index.json

    Microsoft Visual Studio Offline Packages => C:\Program Files (x86)\Microsoft SDKs\NuGetPackages\

    You may need the first one about nuget.org.

    Besides, you can check or add/remove the default package sources from VS => Tools => Options => NuGet Package Manager => Package Sources.

    Sincerely,

    Tianyu


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.