question

RodFalanga avatar image
0 Votes"
RodFalanga asked RodFalanga commented

NuGet packages has Offline Only

I'm setting up a new PC to do development on. Got VS 2019 Community Edition. I went to install Entity Framework Core, but couldn't. It cannot be found. All that I could find was "Microsoft Visual Studio Offline Packages". I searched on that term and came across this article on the archived MSDN forum on this topic. I tried adding NuGet, following the example on the link I have, using https://api.nuget.org/v3/index.json for the URL. It doesn't work. All I'm getting is errors like this:

[NuGet] The V2 feed at 'https://www.nuget.org/Search()?$filter=IsLatestVersion&searchTerm=''&targetFramework='net5.0'&includePrerelease=false&$skip=0&$top=26&semVerLevel=2.0.0' returned an unexpected status code '404 Not Found'.

How do I resolve this issue?




vs-setup
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.

1 Answer

PengGe-MSFT avatar image
1 Vote"
PengGe-MSFT answered RodFalanga commented

Hi @RodFalanga

Welcome to Microsoft Q&A!

Does the Entity Framework Core you mentioned refer to this Nuget package? I can install it in Visual Studio, can you provide more information?


Update:
What package source did you choose? Did you choose nuget.org?
Please make sure you have selected the correct package source, you can upload a screenshot of the nuget solution manager.
127772-image.png


Update:

If your Visual Studio package source does not have nuget.org, you can try to add it to the package source.
Name:
nuget.org
Source:
https://api.nuget.org/v3/index.json
128212-image.png


Sincerely,
Peng


If the answer is helpful, please click "Accept Answer" and upvote it.
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



image.png (155.3 KiB)
image.png (53.8 KiB)
· 5
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 @PengGe-MSFT,

I was hoping to get to that NuGet package, but never did. The issue is that when I open the Manage Packages for Solutions, then go to the Browse tab, nothing is there. No NuGet packages of any sort at all. It's just blank.

0 Votes 0 ·

Hi @RodFalanga
I updated my answer, please check it.

0 Votes 0 ·

Hi @PengGe-MSFT,

My problem is that dropdown for Package source has only one thing: Microsoft Visual Studio Offline Packages

Why didn't Visual Studio come with a package source of nuget.org?

0 Votes 0 ·
Show more comments